Skip to content

Commit 3cc8b5d

Browse files
committed
fix: upgrade
1 parent a19311a commit 3cc8b5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/background/upgrade.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async function doUpgrade() {
103103
if (!isValidArray<string>(res)) {
104104
return;
105105
}
106-
local.set({ [storageKey]: res.map((x) => ({ [name]: x })) });
106+
local.set({ [storageKey]: res.map((x) => (typeof x === 'string' ? { [name]: x } : x)) });
107107
});
108108
}
109109
if (!r.condition) {

0 commit comments

Comments
 (0)