Skip to content

Commit

Permalink
Merge pull request #2380 from mneunomne/#2378
Browse files Browse the repository at this point in the history
  • Loading branch information
dhowe authored Sep 19, 2023
2 parents 333f7bc + 7dfb773 commit 7e6aad0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions platform/common/vapi-background.js
Original file line number Diff line number Diff line change
Expand Up @@ -1352,7 +1352,7 @@ vAPI.onLoadAllCompleted = function(tabId, frameId) { //ADN
var startInTab = function(tab, frameId) { // ADN
var µb = µBlock;
µb.tabContextManager.commit(tab.id, tab.url);
µb.bindTabToPageStore(tab.id);
µb.bindTabToPageStore(tab.id, 'tabCommitted', tab); // ADN trying to fix https://github.com/dhowe/AdNauseam/issues/2378
// https://github.com/chrisaljoudi/uBlock/issues/129
if ( /^https?:\/\//.test(tab.url) ) { // added in ub/1.10.0
scriptStart(tab.id, frameId); //why scriptStart itself only take in one parameter?
Expand Down Expand Up @@ -1380,15 +1380,11 @@ vAPI.onLoadAllCompleted = function(tabId, frameId) { //ADN
};

if (tabId) {
// console.log('tabId: ');

browser.tabs.get(tabId, function(tab) {
if (tab) startInTab(tab, frameId); }
); // ADN
}
else {
// console.log('no-tab: ');

browser.tabs.query({ url: '<all_urls>' }, bindToTabs);
}
};
Expand Down

0 comments on commit 7e6aad0

Please sign in to comment.