feat: hide dev options by default
Some checks failed
TrafficCue CI / check (push) Failing after 54s
TrafficCue CI / build (push) Successful in 48s

This commit is contained in:
Cfp
2025-08-11 09:45:52 +02:00
parent a2064e8dbb
commit 7e6423edd0
4 changed files with 43 additions and 3 deletions

View File

@ -0,0 +1,12 @@
export function getDeveloperToggle() {
const value = localStorage.getItem("developer")
const state = $state({
current: value == null ? false : value
});
$effect(() => {
localStorage.setItem("developer", JSON.stringify(state.current));
});
return state;
}