summaryrefslogtreecommitdiffstats
path: root/background.js
diff options
context:
space:
mode:
authorSimonBrazell <simon@brazell.com.au>2020-11-04 22:15:07 +1100
committerSimonBrazell <simon@brazell.com.au>2020-11-04 22:15:07 +1100
commitc6f14ab139247753625c797ddf87415a28c0cbc6 (patch)
treeb799b3d9a131d29983868c72e7e8eca38317051d /background.js
parent24b0f9c01f258117af8d5f013a1838cbb117cad2 (diff)
downloadprivacy-redirect-c6f14ab139247753625c797ddf87415a28c0cbc6.tar.gz
privacy-redirect-c6f14ab139247753625c797ddf87415a28c0cbc6.tar.bz2
privacy-redirect-c6f14ab139247753625c797ddf87415a28c0cbc6.zip
Ignore embedded videos for FreeTube redirects
Diffstat (limited to '')
-rw-r--r--background.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/background.js b/background.js
index ee90e8d..f8519c6 100644
--- a/background.js
+++ b/background.js
@@ -296,7 +296,7 @@ function redirectYouTube(url, initiator, type) {
if (onlyEmbeddedVideo && type !== "sub_frame") {
return null;
}
- if (useFreeTube) {
+ if (useFreeTube && type !== "sub_frame") {
return `freetube://${url}`;
}
// Apply settings