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.
Functions
The skipWaiting()
method of the ServiceWorkerGlobalScope interface forces the waiting service worker to become the active service worker.
The skipWaiting()
method of the ServiceWorkerGlobalScope interface forces the waiting service worker to become the active service worker.