about summary refs log tree commit diff stats
path: root/src/pages/background/background.js
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2022-06-23 08:34:57 +0300
committerManeraKai <manerakai@protonmail.com>2022-06-23 08:34:57 +0300
commit1d0111201b285918583eb5e95b68c5dfd17644c0 (patch)
treeb0fdb7a08386da1092d60f22626d50c274c9c5a5 /src/pages/background/background.js
parentMerge branch 'master' of https://github.com/libredirect/libredirect (diff)
downloadlibredirect-1d0111201b285918583eb5e95b68c5dfd17644c0.zip
Made frontend icon appear if the current site is surpports it
Diffstat (limited to 'src/pages/background/background.js')
-rw-r--r--src/pages/background/background.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/background/background.js b/src/pages/background/background.js
index 8f2bf2ba..832d6533 100644
--- a/src/pages/background/background.js
+++ b/src/pages/background/background.js
@@ -99,7 +99,7 @@ browser.webRequest.onBeforeRequest.addListener(
     catch { return null; }
 
     let newUrl = youtubeMusicHelper.redirect(url, details.type)
-    if (!newUrl) newUrl = youtubeHelper.redirect(url, details, initiator)
+    if (!newUrl) newUrl = youtubeHelper.redirect(url, details.type, initiator)
     if (!newUrl) newUrl = twitterHelper.redirect(url, details.type, initiator);
     if (!newUrl) newUrl = instagramHelper.redirect(url, details.type, initiator);
     if (!newUrl) newUrl = mapsHelper.redirect(url, initiator);