From 207bb3408af6dfee1f2d852cbf6a3fe0733df42c Mon Sep 17 00:00:00 2001 From: BlackGlory Date: Sun, 13 Oct 2024 17:20:39 +0800 Subject: [PATCH] fix: migration --- src/background/migrate.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/background/migrate.ts b/src/background/migrate.ts index be08cdc..d3577d2 100644 --- a/src/background/migrate.ts +++ b/src/background/migrate.ts @@ -260,7 +260,7 @@ export async function migrate(previousVersion: string): Promise { , { rules: config?.rules ?? [] } ) }) - , createMigration('^2023.0.3 <=2024.0.0', '2024.1.0', async () => { + , createMigration('>=2023.0.3 <2024.1.0', '2024.1.0', async () => { enum LocalStorageItemKey { Config = 'config' } @@ -340,7 +340,6 @@ export async function migrate(previousVersion: string): Promise { pattern: string } - // Make sure storage is initialized const oldStorage = new LocalStorage() const newStorage = new LocalStorage()