mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-06-08 21:34:52 +12:00
This commit is contained in:
parent
d1afcd2e9e
commit
8da0dcd84f
|
@ -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…
Reference in a new issue