KissJS service worker. Mainly used for PWA at the moment.
Methods
# 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
|
kiss.serviceWorker
object
Example
await kiss.serviceWorker.setFile("./myServiceWorkerFile.js").init()