about summary refs log tree commit diff stats
path: root/src/pages/background
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/background')
-rw-r--r--src/pages/background/background.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pages/background/background.js b/src/pages/background/background.js
index ad1a84d3..1f096b4c 100644
--- a/src/pages/background/background.js
+++ b/src/pages/background/background.js
@@ -49,8 +49,6 @@ browser.webRequest.onBeforeRequest.addListener(
 
     var newUrl;
 
-    if (exceptionsHelper.isException(url, initiator)) newUrl = null;
-
     if (!newUrl) newUrl = youtubeHelper.redirect(url, details, initiator)
     if (youtubeMusicHelper.isYoutubeMusic(url, initiator)) newUrl = youtubeMusicHelper.redirect(url, details.type)
 
@@ -75,10 +73,12 @@ browser.webRequest.onBeforeRequest.addListener(
     if (wikipediaHelper.isWikipedia(url, initiator)) newUrl = wikipediaHelper.redirect(url);
 
     if (youtubeHelper.isPipedorInvidious(newUrl ?? url, details.type)) newUrl = youtubeHelper.addUrlParams(newUrl ?? url);
-    else console.log("isPipedorInvidiousisFalse");
+
+    if (exceptionsHelper.isException(url, initiator)) newUrl = null;
 
     if (bybassTabs.includes(details.tabId)) newUrl = null;
 
+
     if (newUrl) {
       if (newUrl == 'CANCEL') {
         console.log(`Canceled ${url}`);