This commit is contained in:
Michal 'Kimi' Mitter 2022-07-20 10:18:13 +02:00 committed by GitHub
commit 5f883da9dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -274,6 +274,8 @@ function redirectYouTube(url, initiator, type) {
return null;
}
if (useFreeTube && type === "main_frame") {
if (url.host === "youtu.be")
return `freetube://https://youtube.com/watch?v=${url.pathname.slice(1)}`
return `freetube://${url}`;
}
// Apply settings