Raymond Hill 7 years ago
parent d1afcd2e9e
commit 8da0dcd84f
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

@ -170,8 +170,10 @@ vAPI.tabs.get = function(tabId, callback) {
/******************************************************************************/ /******************************************************************************/
// https://github.com/uBlockOrigin/uMatrix-issues/issues/9
vAPI.tabs.getAll = function(callback) { vAPI.tabs.getAll = function(callback) {
chrome.tabs.query({ url: '<all_urls>' }, callback); chrome.tabs.query({}, callback);
}; };
/******************************************************************************/ /******************************************************************************/

@ -61,14 +61,11 @@ var onAllDone = function() {
/******************************************************************************/ /******************************************************************************/
var onTabsReady = function(tabs) { var onTabsReady = function(tabs) {
var tab; let i = tabs.length;
var i = tabs.length;
// console.debug('start.js > binding %d tabs', i);
while ( i-- ) { while ( i-- ) {
tab = tabs[i]; let tab = tabs[i];
µm.tabContextManager.push(tab.id, tab.url, 'newURL'); µm.tabContextManager.push(tab.id, tab.url, 'newURL');
} }
onAllDone(); onAllDone();
}; };

Loading…
Cancel
Save