ServiceWorkerGlobalScope

The ServiceWorkerGlobalScope interface of the Service Worker API represents the global execution context of a service worker. Available only in secure contexts.

MDN Reference

Properties

Link copied to clipboard

The clients read-only property of the object associated with the service worker.

Link copied to clipboard

The cookieStore read-only property of the ServiceWorkerGlobalScope interface returns a reference to the CookieStore object associated with this service worker.

Link copied to clipboard
Link copied to clipboard

The location read-only property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker.

Link copied to clipboard

The navigator read-only property of the WorkerGlobalScope interface returns the WorkerNavigator associated with the worker.

Link copied to clipboard

The registration read-only property of the ServiceWorkerGlobalScope interface returns a reference to the ServiceWorkerRegistration object, which represents the service worker's registration.

Link copied to clipboard

The serviceWorker read-only property of the ServiceWorkerGlobalScope interface returns a reference to the ServiceWorker object, which represents the service worker.

Functions

Link copied to clipboard
Link copied to clipboard
open operator fun get(key: JsString): JsAny?
Link copied to clipboard
open operator fun set(key: JsString, value: JsAny?)
Link copied to clipboard
suspend fun skipWaiting()

The skipWaiting() method of the ServiceWorkerGlobalScope interface forces the waiting service worker to become the active service worker.

Link copied to clipboard
Link copied to clipboard