mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-12-06 19:56:45 +10:30
21 lines
859 B
TypeScript
21 lines
859 B
TypeScript
import Settings from "./pages/settings.svelte";
|
|
import renderSvelte from "./main";
|
|
import { initializeSettingsState } from "@/seqta/utils/listeners/SettingsState";
|
|
import { loadRemoteStatus } from "@/seqta/utils/remoteStatus";
|
|
import { initVerboseLogging, verboseInfo } from "@/utils/verboseLog";
|
|
|
|
const mountPoint = document.getElementById("app");
|
|
if (!mountPoint) {
|
|
// In production, Rollup may put this entry in a shared chunk that content
|
|
// scripts load via `import("@/interface/main")`. Only the settings page
|
|
// has `#app` — never throw on SEQTA tabs.
|
|
verboseInfo("[BetterSEQTA+] Settings bootstrap skipped (no #app — not the settings page)");
|
|
} else {
|
|
void (async () => {
|
|
await initializeSettingsState();
|
|
await loadRemoteStatus();
|
|
initVerboseLogging();
|
|
renderSvelte(Settings, mountPoint, { standalone: true });
|
|
})();
|
|
}
|