skipWaiting method
@AvailableInWorkers("service")
The skipWaiting()
method of the ServiceWorkerGlobalScope interface
forces the waiting service worker to become the active service worker.
Use this method with Clients.claim to ensure that updates to the underlying service worker take effect immediately for both the current client and all other active clients.
Implementation
external JSPromise<JSAny?> skipWaiting();