DEMO stuff and symbol renames

This commit is contained in:
LionTion committed 2026-10-20 19:19:00 +02:00
1 parent 51e5a98a92
commit 45acdd3400
15 files changed
+193 -69

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
import { PREF } from "./const";
export function setDemoMode(demo: boolean) {
localStorage.setItem(PREF.demo_mode, demo ? "DEMO" : "");
window.dispatchEvent(new Event('storage'));
}
export function isDemoMode(raw: string): boolean {
return raw === "DEMO";
}