WIP: fixing secp256k1 and BN

This commit is contained in:
Matthew Raymer
2023-11-18 01:40:10 -05:00
parent 1ce9e788e9
commit 267ed40946
2 changed files with 3243 additions and 3233 deletions

View File

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

File diff suppressed because it is too large Load Diff