sw-management
v1.0.1-next
Published
Service Worker Management - PWA
Downloads
2
Readme
SW-Management.
PWA - Service Worker Management
Usage
Table of Contents
SWRegister
An Example how to use SW-management.
Examples
// src/index.js
import SWRegister from 'sw-management'
// Registration of Service - Worker
const swURL = 'https://example.com/service-worker.js'
SWRegister.register(
swURL,
{
onRegister: () => console.log('Has Registered with:', swURL)
}
)
// Checking all of service-worker registered by SW-Management
SWRegister.all()
// Unregister All Service Worker
SWRegister.unregister()