Constructors
Private constructor
- new SwApiHelper(): SwApiHelper
-
Properties
Static Private innerInstance
Accessors
isSupported
- get isSupported(): boolean
-
Returns boolean
Static instance
- get instance(): SwApiHelper
-
Methods
register
- register(path, options?): Promise<{
registration: ServiceWorkerRegistration;
unregister: (() => Promise<boolean>);
}>
-
Parameters
-
path: string
-
Optional options: RegistrationOptions
Returns Promise<{
registration: ServiceWorkerRegistration;
unregister: (() => Promise<boolean>);
}>
Helper for registering service workers.
If you are using SWs you probably want to take a look at these libs: