Skip to content

Commit

Permalink
Merge pull request #2067 from candela97/fix-storage-quota-ff
Browse files Browse the repository at this point in the history
Fix for `browser.storage.sync.QUOTA_BYTES_PER_ITEM` being undefined on FF
  • Loading branch information
tfedor authored Nov 19, 2024
2 parents 8e46c4f + 2498183 commit ac9a704
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 ac9a704

Please sign in to comment.