x
This commit is contained in:
parent
55cac61475
commit
6d0fae555a
1 changed files with 1 additions and 1 deletions
|
|
@ -444,7 +444,7 @@
|
||||||
// Service Worker Registration
|
// Service Worker Registration
|
||||||
if ('serviceWorker' in navigator) {
|
if ('serviceWorker' in navigator) {
|
||||||
window.addEventListener('load', () => {
|
window.addEventListener('load', () => {
|
||||||
navigator.serviceWorker.register('instinct/service-worker.js').then((registration) => {
|
navigator.serviceWorker.register('service-worker.js').then((registration) => {
|
||||||
console.log('Service Worker registered with scope:', registration.scope);
|
console.log('Service Worker registered with scope:', registration.scope);
|
||||||
}, (err) => {
|
}, (err) => {
|
||||||
console.log('Service Worker registration failed:', err);
|
console.log('Service Worker registration failed:', err);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue