diff options
author | ManeraKai <manerakai@protonmail.com> | 2022-06-19 18:49:42 +0300 |
---|---|---|
committer | ManeraKai <manerakai@protonmail.com> | 2022-06-19 18:49:42 +0300 |
commit | f6861164a34f2722b70feb0161bcfec2dd0d78ad (patch) | |
tree | 31b179255c1f5f058c8ada1f4f05520e0dffa362 /src/pages/background | |
parent | Added imgur.io #346. Fixed a typo in Unify. Fixed typo in IMDb #348 (diff) | |
download | libredirect-f6861164a34f2722b70feb0161bcfec2dd0d78ad.zip |
Disabled cookies for incognito for this release #291 #340
Diffstat (limited to 'src/pages/background')
-rw-r--r-- | src/pages/background/background.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/pages/background/background.js b/src/pages/background/background.js index d19828ca..5b2924ae 100644 --- a/src/pages/background/background.js +++ b/src/pages/background/background.js @@ -147,20 +147,8 @@ browser.webRequest.onBeforeRequest.addListener( ["blocking"] ); -let incognitoList = []; -browser.tabs.onCreated.addListener( - tab => { - if (tab.incognito) { - incognitoList.push(tab.id); - if (incognitoList.length == 1) browser.tabs.create({ url: browser.runtime.getURL("/pages/background/incognito.html"), active: false }); - } - } -); - browser.tabs.onRemoved.addListener( tabId => { - incognitoList.pop(tabId) - const i = BYPASSTABs.indexOf(tabId); if (i > -1) { BYPASSTABs.splice(i, 1); |