Merge 846476d6b6
into cd35a73b4d
This commit is contained in:
commit
5f883da9dc
|
@ -274,6 +274,8 @@ function redirectYouTube(url, initiator, type) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (useFreeTube && type === "main_frame") {
|
if (useFreeTube && type === "main_frame") {
|
||||||
|
if (url.host === "youtu.be")
|
||||||
|
return `freetube://https://youtube.com/watch?v=${url.pathname.slice(1)}`
|
||||||
return `freetube://${url}`;
|
return `freetube://${url}`;
|
||||||
}
|
}
|
||||||
// Apply settings
|
// Apply settings
|
||||||
|
|
Loading…
Reference in New Issue