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:
parent
7e1868b1c3
commit
e1dd7f7043
@ -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) {
|
||||