From 3a67d007411586563c19d2e201185b8c4dd19afc Mon Sep 17 00:00:00 2001 From: idk Date: Fri, 1 Oct 2021 15:07:33 -0400 Subject: [PATCH] Fix tab.id check in http-equiv section --- scrub.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scrub.js b/scrub.js index 6c2d6bc..6c98383 100644 --- a/scrub.js +++ b/scrub.js @@ -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) {