make controller update config automatically upon init

This commit is contained in:
Percs 2025-02-06 11:00:56 -06:00
parent 6427d30ab4
commit 4821fedd89
3 changed files with 29 additions and 14 deletions

View file

@ -63,6 +63,10 @@ export class ScramjetController {
loadCodecs();
await this.openIDB();
navigator.serviceWorker?.controller.postMessage({
scramjet$type: "loadConfig",
config: $scramjet.config,
});
dbg.log("config loaded");
}