mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-18 17:02:27 +02:00
fix #3380
This commit is contained in:
parent
e84e79f96e
commit
1cd61063fa
@ -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 ) {
|
||||||
|
@ -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':
|
||||||
|
Loading…
Reference in New Issue
Block a user