Interface WorkerLocation

    The absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling self.location.

    MDN Reference

    interface WorkerLocation {
        hash: string;
        host: string;
        hostname: string;
        href: string;
        origin: string;
        pathname: string;
        port: string;
        protocol: string;
        search: string;
        toString(): string;
    }

    Properties

    hash: string
    host: string
    hostname: string
    href: string
    origin: string
    pathname: string
    port: string
    protocol: string
    search: string

    Methods

    • Returns string