mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-09-30 09:06:56 +13:00
this fixes #513
This commit is contained in:
parent
2bbf72d9ab
commit
8f7f184837
1 changed files with 6 additions and 1 deletions
|
@ -356,6 +356,11 @@ housekeep itself.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
push(tabId, details.url, 'newURL');
|
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) {
|
vAPI.tabs.onUpdated = function(tabId, changeInfo, tab) {
|
||||||
|
@ -610,7 +615,7 @@ vAPI.tabs.registerListeners();
|
||||||
if ( vAPI.isBehindTheSceneTabId(tabId) ) {
|
if ( vAPI.isBehindTheSceneTabId(tabId) ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
tabIdToTimer[tabId] = vAPI.setTimeout(updateBadge.bind(this, tabId), 500);
|
tabIdToTimer[tabId] = vAPI.setTimeout(updateBadge.bind(this, tabId), 750);
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue