mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40:01 -04:00
why does this not get added
This commit is contained in:
parent
4ca362bc83
commit
597e663d09
2 changed files with 6 additions and 7 deletions
|
@ -54,7 +54,7 @@ export class ScramjetController {
|
|||
this.codec = self.$scramjet.codecs[this.config.codec];
|
||||
|
||||
await this.openIDB();
|
||||
|
||||
|
||||
const reg = await navigator.serviceWorker.register(serviceWorkerPath);
|
||||
dbg.log("service worker registered");
|
||||
|
||||
|
@ -95,10 +95,10 @@ export class ScramjetController {
|
|||
}
|
||||
|
||||
async #saveConfig() {
|
||||
if (!this.store) {
|
||||
console.error("Store not ready!")
|
||||
if (!this.store) {
|
||||
console.error("Store not ready!");
|
||||
|
||||
return
|
||||
return;
|
||||
}
|
||||
const tx = this.store.transaction("config", "readwrite");
|
||||
const store = tx.objectStore("config");
|
||||
|
|
|
@ -22,7 +22,7 @@ export class ScramjetServiceWorker extends EventTarget {
|
|||
|
||||
this.threadpool = new ScramjetThreadpool();
|
||||
|
||||
this.cookieStore.load
|
||||
this.cookieStore.load;
|
||||
|
||||
addEventListener("message", ({ data }: { data: MessageC2W }) => {
|
||||
if (!("scramjet$type" in data)) return;
|
||||
|
@ -62,7 +62,7 @@ export class ScramjetServiceWorker extends EventTarget {
|
|||
const db = request.result;
|
||||
const tx = db.transaction("config", "readonly");
|
||||
const store = tx.objectStore("config");
|
||||
const config = store.get("config")
|
||||
const config = store.get("config");
|
||||
|
||||
config.onsuccess = () => {
|
||||
this.config = config.result;
|
||||
|
@ -77,7 +77,6 @@ export class ScramjetServiceWorker extends EventTarget {
|
|||
|
||||
request.onerror = () => reject(request.error);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
route({ request }: FetchEvent) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue