api/service-config: add new domains for vk
This commit is contained in:
@@ -42,7 +42,7 @@ function aliasURL(url) {
|
||||
case "fixvx":
|
||||
case "x":
|
||||
if (services.twitter.altDomains.includes(url.hostname)) {
|
||||
url.hostname = 'twitter.com'
|
||||
url.hostname = 'twitter.com';
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -85,6 +85,13 @@ function aliasURL(url) {
|
||||
url.hostname = 'instagram.com';
|
||||
}
|
||||
break;
|
||||
|
||||
case "vk":
|
||||
case "vkvideo":
|
||||
if (services.vk.altDomains.includes(url.hostname)) {
|
||||
url.hostname = 'vk.com';
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
return url
|
||||
|
||||
Reference in New Issue
Block a user