Skip to content

Commit

Permalink
fix #3380
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Dec 30, 2017
1 parent e84e79f commit 1cd6106
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/js/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down
4 changes: 3 additions & 1 deletion src/js/messaging.js
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 1cd6106

Please sign in to comment.