mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -04:00
make controller update config automatically upon init
This commit is contained in:
parent
6427d30ab4
commit
4821fedd89
3 changed files with 29 additions and 14 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue