Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
this fixes gorhill#513
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Mar 2, 2016
1 parent 824900f commit bcbb67b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/js/tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,11 @@ housekeep itself.
return;
}
push(tabId, details.url, 'newURL');
// https://github.com/gorhill/uMatrix/issues/513
// Force a badge update here, it could happen that all the subsequent
// network requests are already in the page store, which would cause
// the badge to no be updated for these network requests.
µm.updateBadgeAsync(tabId);
};

vAPI.tabs.onUpdated = function(tabId, changeInfo, tab) {
Expand Down Expand Up @@ -610,7 +615,7 @@ vAPI.tabs.registerListeners();
if ( vAPI.isBehindTheSceneTabId(tabId) ) {
return;
}
tabIdToTimer[tabId] = vAPI.setTimeout(updateBadge.bind(this, tabId), 500);
tabIdToTimer[tabId] = vAPI.setTimeout(updateBadge.bind(this, tabId), 750);
};
})();

Expand Down

0 comments on commit bcbb67b

Please sign in to comment.