fix: hide dev options toggle
Some checks failed
TrafficCue CI / check (push) Failing after 54s
TrafficCue CI / build (push) Successful in 47s

This commit is contained in:
Cfp
2025-08-11 09:52:36 +02:00
parent 7e6423edd0
commit f9d34d942e

View File

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