Namespaces

Methods

clientsClaim

static

clientsClaim()

Claim any currently available clients once the service worker becomes active. This is normally used in conjunction with skipWaiting().

loadModule

static

loadModule(moduleName)

Load a Workbox module by passing in the appropriate module name.

This is not generally needed unless you know there are modules that are dynamically used and you want to safe guard use of the module while the user may be offline.

Parameter

moduleName

string

setConfig

static

setConfig(options)

Updates the configuration options. You can specify whether to treat as a debug build and whether to use a CDN or a specific path when importing other workbox-modules

Parameter

options

Optional

Object

skipWaiting

static

skipWaiting()

Force a service worker to become active, instead of waiting. This is normally used in conjunction with clientsClaim().