fix: hide dev options toggle
This commit is contained in:
@ -1,11 +1,11 @@
|
|||||||
export function getDeveloperToggle() {
|
export function getDeveloperToggle() {
|
||||||
const value = localStorage.getItem("developer")
|
const value = localStorage.getItem("developer")
|
||||||
const state = $state({
|
const state = $state({
|
||||||
current: value == null ? false : value
|
current: value == null ? "false" : value
|
||||||
});
|
});
|
||||||
|
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
localStorage.setItem("developer", JSON.stringify(state.current));
|
localStorage.setItem("developer", state.current);
|
||||||
});
|
});
|
||||||
|
|
||||||
return state;
|
return state;
|
||||||
|
|||||||
Reference in New Issue
Block a user