diff options
author | Christian Segundo | 2023-11-20 01:18:56 +0100 |
---|---|---|
committer | Christian Segundo | 2023-11-20 01:18:56 +0100 |
commit | 6dab45f7e5b7d063d146829f2c14d6647f1e46dd (patch) | |
tree | ce8dd6e865bd832d879d9edb46c58e9edbeda92c /background.js | |
parent | c6845a798c99e96aa0e2f6daece0684a8ac50681 (diff) | |
download | moz-run-this-page-action-6dab45f7e5b7d063d146829f2c14d6647f1e46dd.tar.gz |
Diffstat (limited to 'background.js')
-rw-r--r-- | background.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/background.js b/background.js index 3035416..e72c07a 100644 --- a/background.js +++ b/background.js @@ -8,7 +8,10 @@ chrome.webNavigation.onCommitted.addListener(async details => { const domains = await StorageGetDomains(); for (let i = 0; i < domains.length; i++) { if (details.url.includes(domains[i])) { - browser.pageAction.show(details.tabId); + const gldata = await parsetab(details.tabId); + if (gldata.repo) { + browser.pageAction.show(details.tabId); + } return; } } |