diff --git a/source/storage/exports.ts b/source/storage/exports.ts index e9ff4eb..24d38ab 100644 --- a/source/storage/exports.ts +++ b/source/storage/exports.ts @@ -1,4 +1,4 @@ -import {createValue} from "@holllo/webextension-storage"; +import {createValue, type Value} from "@holllo/webextension-storage"; import browser from "webextension-polyfill"; import {Data, Feature} from "./enums.js"; import {collectHideTopicsData} from "./hide-topics.js"; diff --git a/source/storage/migrations/migrations.ts b/source/storage/migrations/migrations.ts index 4fbcdda..d709944 100644 --- a/source/storage/migrations/migrations.ts +++ b/source/storage/migrations/migrations.ts @@ -50,6 +50,7 @@ export const migrations: Array> = [ await version.save(); const enabledFeatures = await fromStorage(Data.EnabledFeatures); + enabledFeatures.value.clear(); for (const [key, value] of Object.entries(data.features)) { if (value) { const snakeCasedKey = key.replace(/([A-Z])/g, "-$1").toLowerCase();