why does this not get added

This commit is contained in:
Toshit Chawda 2024-10-12 14:55:10 -07:00
parent 4ca362bc83
commit 597e663d09
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
2 changed files with 6 additions and 7 deletions

View file

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