Spaces:
Build error
Build error
File size: 370 Bytes
f0499d2 |
1 2 3 4 5 6 7 8 9 |
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
navigator.serviceWorker.register('/serviceWorker.js').then(function (registration) {
console.log('ServiceWorker registration successful with scope: ', registration.scope);
}, function (err) {
console.error('ServiceWorker registration failed: ', err);
});
});
} |