Update services.js
This commit is contained in:
parent
473e196567
commit
94f7690e1d
|
@ -582,7 +582,7 @@ function redirect(url, type, initiator, forceRedirection, incognito) {
|
||||||
if (reg)
|
if (reg)
|
||||||
return `${randomInstance}/tblr/media/${reg[1]}${url.pathname}${url.search}`
|
return `${randomInstance}/tblr/media/${reg[1]}${url.pathname}${url.search}`
|
||||||
|
|
||||||
const blogregex = /^(?:www\.)?([a-z\d]+)\.tumblr\.com/.exec(url.hostname) // <blog>.tumblr.com
|
const blogregex = /^(?:www\.)?([a-z\d-]+)\.tumblr\.com/.exec(url.hostname) // <blog>.tumblr.com
|
||||||
if (blogregex) {
|
if (blogregex) {
|
||||||
const blog_name = blogregex[1];
|
const blog_name = blogregex[1];
|
||||||
// Under the <blog>.tumblr.com domain posts are under a /post path
|
// Under the <blog>.tumblr.com domain posts are under a /post path
|
||||||
|
|
Loading…
Reference in New Issue