Fix FreeTube for non-video urls

This commit is contained in:
ChunkyProgrammer 2023-08-04 17:30:51 -07:00
parent ed36feb6f2
commit bbe5939669
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ function redirect(url, type, initiator, forceRedirection) {
return url.href.replace(/^https?:\/{2}/, "yattee://")
}
case "freetube": {
return `freetube://https://youtu.be${url.pathname}${url.search}`.replace(/watch\?v=/, "")
return 'freetube://' + url.href.replace(/^https?:\/{2}/, "https//")
}
case "poketube": {
if (url.pathname.startsWith('/channel')) {