Skip to content

Commit

Permalink
Merge pull request #31 from rmehner/fixes/use-root-url-for-registration
Browse files Browse the repository at this point in the history
fix: use absolute path instead of relative path
  • Loading branch information
jkleinsc authored Aug 17, 2016
2 parents eac097a + 4041aed commit 3632e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/registration.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('./service-worker.js', {scope: './'})
navigator.serviceWorker.register('/service-worker.js', {scope: '/'})
.catch(function(error) {
console.error('Error registering service worker:'+error);
});
Expand Down

0 comments on commit 3632e6d

Please sign in to comment.