ServiceWorkerGlobalScope
The ServiceWorkerGlobalScope
interface of the Service Worker API represents the global execution context of a service worker. Available only in secure contexts.
Properties
The cookieStore
read-only property of the ServiceWorkerGlobalScope interface returns a reference to the CookieStore object associated with this service worker.
The location
read-only property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker.
The navigator
read-only property of the WorkerGlobalScope interface returns the WorkerNavigator associated with the worker.
The registration
read-only property of the ServiceWorkerGlobalScope interface returns a reference to the ServiceWorkerRegistration object, which represents the service worker's registration.
The serviceWorker
read-only property of the ServiceWorkerGlobalScope interface returns a reference to the ServiceWorker object, which represents the service worker.