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 -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>