1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-18 17:02:27 +02:00
This commit is contained in:
Raymond Hill 2017-12-30 17:38:07 -05:00
parent e84e79f96e
commit 1cd61063fa
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
2 changed files with 6 additions and 2 deletions

View File

@ -1011,7 +1011,9 @@ var updateDone = function() {
api.updateStart = function(details) { api.updateStart = function(details) {
var oldUpdateDelay = updaterAssetDelay, var oldUpdateDelay = updaterAssetDelay,
newUpdateDelay = details.delay || updaterAssetDelayDefault; newUpdateDelay = typeof details.delay === 'number' ?
details.delay :
updaterAssetDelayDefault;
updaterAssetDelay = Math.min(oldUpdateDelay, newUpdateDelay); updaterAssetDelay = Math.min(oldUpdateDelay, newUpdateDelay);
if ( updaterStatus !== undefined ) { if ( updaterStatus !== undefined ) {
if ( newUpdateDelay < oldUpdateDelay ) { if ( newUpdateDelay < oldUpdateDelay ) {

View File

@ -121,7 +121,9 @@ var onMessage = function(request, sender, callback) {
case 'forceUpdateAssets': case 'forceUpdateAssets':
µb.scheduleAssetUpdater(0); µb.scheduleAssetUpdater(0);
µb.assets.updateStart({ delay: µb.hiddenSettings.manualUpdateAssetFetchPeriod || 2000 }); µb.assets.updateStart({
delay: µb.hiddenSettings.manualUpdateAssetFetchPeriod
});
break; break;
case 'getAppData': case 'getAppData':