diff --git a/browser-targets.json b/browser-targets.json index 32b5df5a..df4a116f 100644 --- a/browser-targets.json +++ b/browser-targets.json @@ -1,6 +1,6 @@ { "firefox": { - "minimumVersion": "91.1.0", + "minimumVersion": "94.0", "manifestVersionPath": [ "applications", "gecko", diff --git a/src/lib/config.ts b/src/lib/config.ts index 4fbd2921..9de8f064 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -21,6 +21,8 @@ import * as binding from "@src/lib/binding" import * as platform from "@src/lib/platform" import { DeepPartial } from "tsdef" +declare function structuredClone(value: T): T // delete me once we move off typescript 3 + /* Remove all nulls from objects recursively * NB: also applies to arrays */ @@ -2205,7 +2207,7 @@ export async function clear() { */ export async function save() { const settingsobj = o({}) - settingsobj[CONFIGNAME] = JSON.parse(JSON.stringify(USERCONFIG)) + settingsobj[CONFIGNAME] = structuredClone(USERCONFIG) return store(() => browser.storage.local.set(settingsobj)) }