From 3648d14b0afe3bf35566a676b4201a8741a37105 Mon Sep 17 00:00:00 2001 From: MxtOUT <14999077+MxtOUT@users.noreply.github.com> Date: Wed, 13 Sep 2023 21:04:54 +0200 Subject: [PATCH] Fix storage warning dialog never appearing on Firefox Fixes #1306 --- src/js/Core/Storage/SyncedStorage.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/Core/Storage/SyncedStorage.ts b/src/js/Core/Storage/SyncedStorage.ts index 12efb1f76..cd46e16c6 100644 --- a/src/js/Core/Storage/SyncedStorage.ts +++ b/src/js/Core/Storage/SyncedStorage.ts @@ -15,7 +15,8 @@ import {StoreList} from "../../Options/Modules/Data/StoreList"; */ class SyncedStorage> extends Storage { - public readonly QUOTA_BYTES_PER_ITEM = browser.storage.sync.QUOTA_BYTES_PER_ITEM; + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- see https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/66696 + public readonly QUOTA_BYTES_PER_ITEM = browser.storage.sync.QUOTA_BYTES_PER_ITEM ?? 8192; public constructor( defaults: Defaults,