about summary refs log tree commit diff stats
path: root/src/pages/background/background.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/background/background.js')
-rw-r--r--src/pages/background/background.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pages/background/background.js b/src/pages/background/background.js
index 39c10052..7e37bade 100644
--- a/src/pages/background/background.js
+++ b/src/pages/background/background.js
@@ -26,7 +26,6 @@ import frontend from "../../assets/javascripts/frontend.js"
 
 window.browser = window.browser || window.chrome
 
-
 browser.runtime.onInstalled.addListener(details => {
 	function initDefaults() {
 		fetch("/instances/blacklist.json")
@@ -90,7 +89,7 @@ browser.webRequest.onBeforeRequest.addListener(
 		}
 
 		let newUrl = youtubeMusicHelper.redirect(url, details.type)
-		if (!newUrl) newUrl = youtubeHelper.redirect(url, details.type, initiator)
+		if (!newUrl) newUrl = youtubeHelper.redirect(url, details.type, details.tabId, 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)