This commit is contained in:
zeppi 2021-06-04 15:22:40 -04:00 committed by jessopb
parent a0c2f8fa40
commit eb7d4e1eef

View file

@ -2,10 +2,10 @@
if ('serviceWorker' in navigator) {
navigator.serviceWorker
.register('./serviceWorker.js')
.then(function (reg) {
.then(function(reg) {
// reg.scope must be '/' to allow '/' as start url
})
.catch(function (err) {
.catch(function(err) {
// console.warn('Error whilst registering service worker', err);
});
}