Update services.js

This commit is contained in:
ManeraKai 2023-12-11 10:58:32 +00:00 committed by GitHub
parent 473e196567
commit 94f7690e1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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