fix: standalone settingsState not loading

This commit is contained in:
SethBurkart123
2025-06-12 16:42:01 +10:00
parent 8bd9b1dae7
commit 66ff6e3468
2 changed files with 4 additions and 3 deletions
+2
View File
@@ -3,6 +3,7 @@ import Settings from "./pages/settings.svelte";
import IconFamily from "@/resources/fonts/IconFamily.woff";
import browser from "webextension-polyfill";
import renderSvelte from "./main";
import { initializeSettingsState } from "@/seqta/utils/listeners/SettingsState";
function InjectCustomIcons() {
console.info("[BetterSEQTA+] Injecting Icons");
@@ -26,4 +27,5 @@ if (!mountPoint) {
}
InjectCustomIcons();
await initializeSettingsState();
renderSvelte(Settings, mountPoint, { standalone: true });
+2 -3
View File
@@ -7,7 +7,7 @@
import { standalone as StandaloneStore } from '../utils/standalone.svelte';
import { onMount } from 'svelte'
import { initializeSettingsState, settingsState } from '@/seqta/utils/listeners/SettingsState'
import { settingsState } from '@/seqta/utils/listeners/SettingsState'
import { closeExtensionPopup } from "@/seqta/utils/Closers/closeExtensionPopup"
import { OpenAboutPage } from "@/seqta/utils/Openers/OpenAboutPage"
@@ -52,13 +52,12 @@
let { standalone } = $props<{ standalone?: boolean }>();
let showColourPicker = $state<boolean>(false);
onMount(() => {
onMount(async () => {
settingsPopup.addListener(() => {
showColourPicker = false;
});
if (!standalone) return;
initializeSettingsState();
StandaloneStore.setStandalone(true);
});
</script>