Skip to content

Instantly share code, notes, and snippets.

@webmaxru
Created February 27, 2019 19:24
Show Gist options
  • Save webmaxru/7a2ac037e6332fb25ae797e775c347c3 to your computer and use it in GitHub Desktop.
Save webmaxru/7a2ac037e6332fb25ae797e775c347c3 to your computer and use it in GitHub Desktop.
Workbox 4: workbox-window. register-service-worker
import { register } from 'register-service-worker'
register('/service-worker.js', {
updated (registration) {
// "Click to refresh" prompt
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment