Fix tab.id check in http-equiv section

This commit is contained in:
idk
2021-10-01 15:07:33 -04:00
parent d5a0edfd68
commit 3a67d00741

View File

@@ -558,8 +558,11 @@ var coolheadersSetup = function (e) {
};
function getTabURL(tab) {
if (tab.tabId != undefined) {
popup = browser.pageAction.getPopup({ tabId: tab.tabId });
console.log("(scrub)(equiv check) popup check", tab);
if (tab.id != undefined) {
popup = browser.pageAction.getPopup({ tabId: tab.id });
console.log("(scrub)(equiv check) popup check");
popup.then(gotPopup);
}
function gotPopup(p) {