Fixing service worker URL

This commit is contained in:
Jeff Avallone 2018-05-16 18:47:02 -04:00
parent f3a2acdd7f
commit 7698901451

View File

@ -1,7 +1,7 @@
const setupServiceWorker = () => {
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/sw.js')
navigator.serviceWorker.register('/service-worker.js')
.then(registration => {
console.log('SW registered:', registration); // eslint-disable-line no-console
})