diff --git a/app.vue b/app.vue index 127cd5a5..1585cfab 100644 --- a/app.vue +++ b/app.vue @@ -13,9 +13,11 @@ import { fetchHead } from "@/services/api/main" import { fetchLatestBlocks } from "@/services/api/block" /** Store */ +import { useNodeStore } from "@/store/node" import { useAppStore } from "@/store/app" import { useBookmarksStore } from "@/store/bookmarks" import { useSettingsStore } from "@/store/settings" +const nodeStore = useNodeStore() const appStore = useAppStore() const bookmarksStore = useBookmarksStore() const settingsStore = useSettingsStore() @@ -31,6 +33,10 @@ onMounted(async () => { bookmarksStore.bookmarks = JSON.parse(localStorage.bookmarks) } + if (localStorage.nodeSettings) { + nodeStore.settings = JSON.parse(localStorage.nodeSettings) + } + const runtimeConfig = useRuntimeConfig() amp.init(runtimeConfig.public.AMP) @@ -55,7 +61,7 @@ onMounted(async () => {