Fixes #12 in the tab
This commit is contained in:
parent
5fa631a903
commit
b5ab99da8d
@ -192,7 +192,11 @@ module.exports = {
|
||||
if (url.p == -1) {
|
||||
document.querySelector("title").innerHTML = `${url.p.toContent().toTitleCase()} | ${ document.querySelector("title").getAttribute("data-site") }`;
|
||||
} else {
|
||||
document.querySelector("title").innerHTML = `${url.p.substring(url.p.lastIndexOf("/")+1).toContent().toTitleCase()} | ${ document.querySelector("title").getAttribute("data-site") }`
|
||||
let theTitle = docuemnt.querySelector("article").getAttribute("data-name").toContent().toTitleCase();
|
||||
if (docuemnt.querySelector("article").getAttribute("data-display") !== null) {
|
||||
theTitle = docuemnt.querySelector("article").getAttribute("data-display")
|
||||
}
|
||||
document.querySelector("title").innerHTML = `${theTitle} | ${ document.querySelector("title").getAttribute("data-site") }`
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user