mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-04 01:59:38 +02:00
This commit is contained in:
parent
41512db6c9
commit
a4e61b51cd
@ -1152,7 +1152,7 @@ vAPI.cloud = (function() {
|
|||||||
// actual data, but all of this is provided for free by browser vendors,
|
// actual data, but all of this is provided for free by browser vendors,
|
||||||
// so we need to accept and deal with these limitations.
|
// so we need to accept and deal with these limitations.
|
||||||
var initialize = function() {
|
var initialize = function() {
|
||||||
var ratio = vAPI.webextFlavor.startsWith('Mozilla-Firefox-') ? 0.5 : 0.75;
|
var ratio = vAPI.webextFlavor.startsWith('Mozilla-Firefox-') ? 0.6 : 0.75;
|
||||||
maxChunkSize = Math.floor(maxChunkSize * ratio);
|
maxChunkSize = Math.floor(maxChunkSize * ratio);
|
||||||
initialize = function(){};
|
initialize = function(){};
|
||||||
};
|
};
|
||||||
@ -1240,6 +1240,9 @@ vAPI.cloud = (function() {
|
|||||||
var errorStr;
|
var errorStr;
|
||||||
if ( chrome.runtime.lastError ) {
|
if ( chrome.runtime.lastError ) {
|
||||||
errorStr = chrome.runtime.lastError.message;
|
errorStr = chrome.runtime.lastError.message;
|
||||||
|
// https://github.com/gorhill/uBlock/issues/3006#issuecomment-332597677
|
||||||
|
// - Delete all that was pushed in case of failure.
|
||||||
|
chunkCount = 0;
|
||||||
}
|
}
|
||||||
callback(errorStr);
|
callback(errorStr);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user