0.10.0 • Published 8 months ago
@lumjs/service-worker v0.10.0
lum.service-worker.js
Helper classes for working with Service Workers.
Status
This package is still in development, and does not have a stable API yet.
Exports
@lumjs/service-worker/context
A class for use inside a Service Worker context. Provides a few simplistic methods and sub-classes for handling caches and a few other features.
@lumjs/service-worker/window
A class for use in a browser window to register, active, and commuicate with a Service Worker.
@lumjs/service-worker
Returns the context
class if loaded in a Service Worker,
or the window
class if loaded in a browser window.
If the current JS context is neither a window or a service worker, (e.g. called directly from node.js) an error object will be returned.
Official URLs
This library can be found in two places:
Author
Timothy Totten 2010@totten.ca