Added subdomain support for LibMedium
This commit is contained in:
parent
649e83b77f
commit
f035e800ac
|
@ -191,6 +191,7 @@ function redirect(url, type, initiator, forceRedirection) {
|
||||||
}
|
}
|
||||||
return `${randomInstance}${url.pathname}${url.search}`
|
return `${randomInstance}${url.pathname}${url.search}`
|
||||||
}
|
}
|
||||||
|
case "libMedium":
|
||||||
case "scribe": {
|
case "scribe": {
|
||||||
const regex = url.hostname.match(/^(link|cdn-images-\d+|.*)\.medium\.com/)
|
const regex = url.hostname.match(/^(link|cdn-images-\d+|.*)\.medium\.com/)
|
||||||
if (regex && regex.length > 1) {
|
if (regex && regex.length > 1) {
|
||||||
|
|
Loading…
Reference in New Issue