Raymond Hill 7 years ago
parent
commit
8da0dcd84f
No known key found for this signature in database GPG Key ID: 25E1490B761470C2
  1. 4
      platform/chromium/vapi-background.js
  2. 7
      src/js/start.js

4
platform/chromium/vapi-background.js

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

7
src/js/start.js

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

Loading…
Cancel
Save