Namespace

serviceWorker

kiss.serviceWorker

KissJS service worker. Mainly used for PWA at the moment.

View Source client/core/kiss.js, line 661

Methods

# async static init()

Init the service worker

View Source client/core/kiss.js, line 690

# static setFile(path) → {object}

Set the location of the service worker file. Returns the service worker so that this method is chainable with the init method.

Parameters:
Name Type Description
path string

View Source client/core/kiss.js, line 679

kiss.serviceWorker

object
Example
await kiss.serviceWorker.setFile("./myServiceWorkerFile.js").init()