Ok cool, now time to rewrite the settings (I am dreading this)

This commit is contained in:
MotorTruck1221 2025-01-04 02:46:58 -07:00
parent 5b578806c7
commit ef0f7055a0
No known key found for this signature in database
GPG key ID: 08F417E2B8B61EA4

View file

@ -47,13 +47,12 @@
const conn = await createBareMuxConn("/baremux/worker.js");
await setTransport(conn, "libcurl");
window.sw = new SW(conn);
log("info", { bg: true, prefix: true }, "General init completed");
const { serviceWorker, bareMuxConn, sj } = await window.sw.getSWInfo();
log("info", { bg: true, prefix: true }, `General init completed! \n\nInit info: \nServiceWorker: ${serviceWorker.active?.state} \nBareMux Transport: ${await bareMuxConn.getTransport()} \nScramjetController: ${sj ? 'Active' : 'Not active'}`);
}
const settingsInit = async () => {
log("info", { bg: true, prefix: true }, "Initializing settings...");
log("info", { bg: true, prefix: true }, "Initialized Settings!");
};
log("info", { bg: true, prefix: true }, "Initializing settings...");
log("info", { bg: true, prefix: true }, "Initialized Settings!");
const eventHandler = new EventHandler({
events: {
@ -61,7 +60,6 @@
await init();
}),
"astro:page-load": (async () => {
await settingsInit();
})
},
logging: true