fix: hide dev options toggle
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user