Fix FreeTube for non-video urls
This commit is contained in:
parent
ed36feb6f2
commit
bbe5939669
|
@ -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')) {
|
||||
|
|
Loading…
Reference in New Issue