1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-19 03:05:22 +02:00

Ensure toolbar icon reflect updated whitelist directives

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/680

Opportunistically, vAPI.tabs has been refactored toward
ES6 syntax.
This commit is contained in:
Raymond Hill 2019-07-21 10:48:44 -04:00
parent 7e1868b1c3
commit e1dd7f7043
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
2 changed files with 596 additions and 596 deletions

View File

@ -275,10 +275,6 @@ vAPI.browserSettings = (function() {
/******************************************************************************/
/******************************************************************************/
vAPI.tabs = {};
/******************************************************************************/
vAPI.isBehindTheSceneTabId = function(tabId) {
return tabId < 0;
};
@ -286,166 +282,104 @@ vAPI.isBehindTheSceneTabId = function(tabId) {
vAPI.unsetTabId = 0;
vAPI.noTabId = -1; // definitely not any existing tab
/******************************************************************************/
// To remove when tabId-as-integer has been tested enough.
var toChromiumTabId = function(tabId) {