processing url: alt domains for services and fixvx support

This commit is contained in:
wukko
2023-12-25 18:04:52 +06:00
committed by dumbmoron
parent 5928b21fee
commit aaa61cfee9
2 changed files with 3 additions and 1 deletions

View File

@@ -27,8 +27,9 @@ export function aliasURL(url) {
break;
case "vxtwitter":
case "fixvx":
case "x":
if (['x.com', 'vxtwitter.com'].includes(url.hostname)) {
if (services.twitter.altDomains.includes(url.hostname)) {
url.hostname = 'twitter.com'
}
break;