Skip to content

Commit

Permalink
Fix for browser.storage.sync.QUOTA_BYTES_PER_ITEM being undefined o…
Browse files Browse the repository at this point in the history
…n FF
  • Loading branch information
candela97 committed Oct 3, 2024
1 parent 2904565 commit 2498183
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 @@ -32,7 +32,8 @@ export class SyncedStorage<Schema extends StorageSchema> extends Storage<ns.Sync
}

get QUOTA_BYTES_PER_ITEM(): number {
return browser.storage.sync.QUOTA_BYTES_PER_ITEM;
// see https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/66696
return browser.storage.sync.QUOTA_BYTES_PER_ITEM ?? 8192;
}
}

Expand Down

0 comments on commit 2498183

Please sign in to comment.