diff --git a/src/SEQTA.ts b/src/SEQTA.ts index d093481a..37b39729 100644 --- a/src/SEQTA.ts +++ b/src/SEQTA.ts @@ -65,6 +65,9 @@ async function init() { if (settingsState.onoff) { enableCurrentTheme() + //console.log(await browser.storage.local.get()) + //settingsState.bksliderinput = '10' + //console.log(await browser.storage.local.get()) // TEMP FIX for bug! -> this is a hack to get the injected.css file to have HMR in development mode as this import system is currently broken with crxjs if (import.meta.env.MODE === 'development') { diff --git a/src/interface/pages/SettingsPage/Shortcuts.tsx b/src/interface/pages/SettingsPage/Shortcuts.tsx index 9c2b606e..7f405878 100644 --- a/src/interface/pages/SettingsPage/Shortcuts.tsx +++ b/src/interface/pages/SettingsPage/Shortcuts.tsx @@ -15,7 +15,6 @@ const Shortcuts = memo(() => { const [newTitle, setNewTitle] = useState(""); const [isFormVisible, setFormVisible] = useState(false); const [newURL, setNewURL] = useState(""); - const switchChange = useCallback((shortcutName: string, isOn: boolean) => { setSettingsState((prevState) => { diff --git a/src/seqta/utils/listeners/SettingsState.ts b/src/seqta/utils/listeners/SettingsState.ts index e4543c2e..00e41753 100644 --- a/src/seqta/utils/listeners/SettingsState.ts +++ b/src/seqta/utils/listeners/SettingsState.ts @@ -21,7 +21,7 @@ class StorageManager { return Reflect.get(target.data, prop); }, set: (target, prop: keyof SettingsState, value) => { - Reflect.set(target.data, prop, value); + Reflect.set(target, prop, value); target.saveToStorage(); return true; },