Skip to content

Commit

Permalink
Fix storage warning dialog never appearing on Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
MxtOUT committed Sep 13, 2023
1 parent 1905c24 commit 3648d14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/Core/Storage/SyncedStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import {StoreList} from "../../Options/Modules/Data/StoreList";
*/
class SyncedStorage<Defaults extends Record<Key, Value>> extends Storage<Defaults> {

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,
Expand Down

0 comments on commit 3648d14

Please sign in to comment.