Skip to content

Instantly share code, notes, and snippets.

@antondomratchev
Created October 25, 2019 21:06
Show Gist options
  • Save antondomratchev/48fc00917d07aef815d2fe928c1b2056 to your computer and use it in GitHub Desktop.
Save antondomratchev/48fc00917d07aef815d2fe928c1b2056 to your computer and use it in GitHub Desktop.
navigator.serviceWorker
.register('http://localhost:3050/static/js/main.chunk.js')
.then(registration => {
debugger
registration.showNotification('Service worker installed')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment