1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-04 16:47:15 +02:00
This commit is contained in:
gorhill 2017-09-11 17:02:44 -04:00
parent d3cd79c5b0
commit 0d18d996be
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -1122,7 +1122,12 @@ vAPI.cloud = (function() {
var maxChunkCountPerItem = Math.floor(512 * 0.75) & ~(chunkCountPerFetch - 1);
// Mind chrome.storage.sync.QUOTA_BYTES_PER_ITEM (8192 at time of writing)
var maxChunkSize = Math.floor(chrome.storage.sync.QUOTA_BYTES_PER_ITEM * 0.75 || 6144);
// https://github.com/gorhill/uBlock/issues/3006
// For Firefox, we will use a higher ratio to allow for more overhead for
// the infrastructure. Unfortunately this leads to less usable space for
// actual data, but all of this is provided for free by browser vendors,
// so we need to accept and deal with these limitations.
var maxChunkSize = Math.floor(chrome.storage.sync.QUOTA_BYTES_PER_ITEM * 0.75 || 5120);
// Mind chrome.storage.sync.QUOTA_BYTES (128 kB at time of writing)
// Firefox: