Readonly
hashThe fragment identifier of the URL of the script executed in the Worker, beginning with a '#'.
Readonly
hostThe host, that is the hostname, a ':', and the port of the URL of the script executed in the Worker.
Readonly
hostnameThe domain of the URL of the script executed in the Worker.
Readonly
hrefStringifier that returns the whole URL of the script executed in the Worker.
Readonly
originThe canonical form of the origin of the specific location.
Readonly
pathnameThe path of the URL of the script executed in the Worker, beginning with a '/'.
Readonly
portThe port number of the URL of the script executed in the Worker.
Readonly
protocolThe protocol scheme of the URL of the script executed in the Worker, including the final ':'.
Readonly
searchThe parameters (query string) of the URL of the script executed in the Worker, beginning with a '?'.
Generated using TypeDoc
Location object on a service worker's
self
object.See https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation.