Location object on a service worker's self object.

See https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation.

Hierarchy

  • WorkerLocation

Properties

hash: string

The fragment identifier of the URL of the script executed in the Worker, beginning with a '#'.

host: string

The host, that is the hostname, a ':', and the port of the URL of the script executed in the Worker.

hostname: string

The domain of the URL of the script executed in the Worker.

href: string

Stringifier that returns the whole URL of the script executed in the Worker.

origin: string

The canonical form of the origin of the specific location.

pathname: string

The path of the URL of the script executed in the Worker, beginning with a '/'.

port: string

The port number of the URL of the script executed in the Worker.

protocol: string

The protocol scheme of the URL of the script executed in the Worker, including the final ':'.

search: string

The parameters (query string) of the URL of the script executed in the Worker, beginning with a '?'.

Methods

  • Synonym for href attribute

    Returns string

Generated using TypeDoc