|
@ -6,7 +6,12 @@ importScripts( |
|
|
|
|
|
|
|
|
self.addEventListener("install", (event) => { |
|
|
self.addEventListener("install", (event) => { |
|
|
console.log("Install event fired."); |
|
|
console.log("Install event fired."); |
|
|
importScripts("safari-notifications.js", "nacl.js"); |
|
|
importScripts( |
|
|
|
|
|
"safari-notifications.js", |
|
|
|
|
|
"nacl.js", |
|
|
|
|
|
"sw-bn.js", |
|
|
|
|
|
"secp256k1.js", |
|
|
|
|
|
); |
|
|
console.log("scripts imported", event); |
|
|
console.log("scripts imported", event); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
@ -50,4 +55,12 @@ self.addEventListener("fetch", (event) => { |
|
|
console.log(event.request); |
|
|
console.log(event.request); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
self.addEventListener("error", (event) => { |
|
|
|
|
|
console.error("Error in Service Worker:", event.message); |
|
|
|
|
|
console.error("File:", event.filename); |
|
|
|
|
|
console.error("Line:", event.lineno); |
|
|
|
|
|
console.error("Column:", event.colno); |
|
|
|
|
|
console.error("Error Object:", event.error); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
workbox.precaching.precacheAndRoute(self.__WB_MANIFEST); |
|
|
workbox.precaching.precacheAndRoute(self.__WB_MANIFEST); |
|
|