Browse Source

WIP: fixing secp256k1 and BN

pull/78/head
Matthew Raymer 1 year ago
parent
commit
267ed40946
  1. 15
      sw_scripts/additional-scripts.js
  2. 6061
      sw_scripts/sw-bn.js

15
sw_scripts/additional-scripts.js

@ -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);

6061
sw_scripts/sw-bn.js

File diff suppressed because it is too large
Loading…
Cancel
Save