From e953c320fb0c19981e4183ffe9b5d0cb4fdf332f Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Mon, 29 Aug 2022 20:49:00 +0530 Subject: [PATCH] fix store --- src/lib/util/migrations.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/util/migrations.ts b/src/lib/util/migrations.ts index 40b6a1bc..1792d71b 100644 --- a/src/lib/util/migrations.ts +++ b/src/lib/util/migrations.ts @@ -1,5 +1,5 @@ import { writable, get, type Writable } from 'svelte/store'; -import { persist, localStorage } from '@macfja/svelte-persistent-store'; +import { persist, createLocalStorage } from '@macfja/svelte-persistent-store'; import { injectHistoryIDs } from '$lib/components/history/history'; import { logEvent } from './stats'; @@ -13,7 +13,7 @@ const migrations: { [key: string]: () => void } = { const migrationStore: Writable = persist( writable({ version: -1 }), - localStorage(), + createLocalStorage(), 'migrations' );