mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
fix #3380
This commit is contained in:
parent
e84e79f96e
commit
1cd61063fa
@ -1011,7 +1011,9 @@ var updateDone = function() {
|
||||
|
||||
api.updateStart = function(details) {
|
||||
var oldUpdateDelay = updaterAssetDelay,
|
||||
newUpdateDelay = details.delay || updaterAssetDelayDefault;
|
||||
newUpdateDelay = typeof details.delay === 'number' ?
|
||||
details.delay :
|
||||
updaterAssetDelayDefault;
|
||||
updaterAssetDelay = Math.min(oldUpdateDelay, newUpdateDelay);
|
||||
if ( updaterStatus !== undefined ) {
|
||||
if ( newUpdateDelay < oldUpdateDelay ) {
|
||||
|
@ -121,7 +121,9 @@ var onMessage = function(request, sender, callback) {
|
||||
|
||||
case 'forceUpdateAssets':
|
||||
µb.scheduleAssetUpdater(0);
|
||||
µb.assets.updateStart({ delay: µb.hiddenSettings.manualUpdateAssetFetchPeriod || 2000 });
|
||||
µb.assets.updateStart({
|
||||
delay: µb.hiddenSettings.manualUpdateAssetFetchPeriod
|
||||
});
|
||||
break;
|
||||
|
||||
case 'getAppData':
|
||||
|
Loading…
Reference in New Issue
Block a user