Skip to content

Commit

Permalink
Register sw on path
Browse files Browse the repository at this point in the history
  • Loading branch information
ebidel committed Jan 30, 2017
1 parent f18e654 commit 29d35c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lighthouse-viewer/app/src/main.js
Expand Up @@ -45,7 +45,7 @@ Promise.all(loadPolyfillPromises).then(_ => {
});

if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/sw.js').catch(e => {
navigator.serviceWorker.register('sw.js').catch(e => {
// eslint-disable-next-line no-console
console.error('Error during service worker registration:', e);
});
Expand Down

0 comments on commit 29d35c4

Please sign in to comment.