Remove replace regex
This commit is contained in:
parent
bbe5939669
commit
8ee0485ffe
@ -155,7 +155,7 @@ function redirect(url, type, initiator, forceRedirection) {
|
|||||||
return url.href.replace(/^https?:\/{2}/, "yattee://")
|
return url.href.replace(/^https?:\/{2}/, "yattee://")
|
||||||
}
|
}
|
||||||
case "freetube": {
|
case "freetube": {
|
||||||
return 'freetube://' + url.href.replace(/^https?:\/{2}/, "https//")
|
return 'freetube://' + url.href
|
||||||
}
|
}
|
||||||
case "poketube": {
|
case "poketube": {
|
||||||
if (url.pathname.startsWith('/channel')) {
|
if (url.pathname.startsWith('/channel')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user