lint
This commit is contained in:
parent
a0c2f8fa40
commit
eb7d4e1eef
1 changed files with 2 additions and 2 deletions
|
@ -2,10 +2,10 @@
|
||||||
if ('serviceWorker' in navigator) {
|
if ('serviceWorker' in navigator) {
|
||||||
navigator.serviceWorker
|
navigator.serviceWorker
|
||||||
.register('./serviceWorker.js')
|
.register('./serviceWorker.js')
|
||||||
.then(function (reg) {
|
.then(function(reg) {
|
||||||
// reg.scope must be '/' to allow '/' as start url
|
// reg.scope must be '/' to allow '/' as start url
|
||||||
})
|
})
|
||||||
.catch(function (err) {
|
.catch(function(err) {
|
||||||
// console.warn('Error whilst registering service worker', err);
|
// console.warn('Error whilst registering service worker', err);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue