fix: storage always resetting to default

This commit is contained in:
SethBurkart123
2025-04-03 22:24:25 +11:00
parent 048ccb248e
commit 45a16de405
3 changed files with 6 additions and 4 deletions
+3
View File
@@ -1,4 +1,5 @@
import {
initializeSettingsState,
settingsState,
} from "@/seqta/utils/listeners/SettingsState"
import documentLoadCSS from "@/css/documentload.scss?inline"
@@ -38,6 +39,8 @@ async function init() {
icon.href = icon48 // Change the icon
try {
await initializeSettingsState()
if (typeof settingsState.onoff === "undefined") {
browser.runtime.sendMessage({ type: "setDefaultStorage" })
}