Fixes #18
This commit is contained in:
@@ -192,11 +192,14 @@ module.exports = {
|
||||
if (url.p == -1) {
|
||||
document.querySelector("title").innerHTML = `${url.p.toContent().toTitleCase()} | ${ document.querySelector("title").getAttribute("data-site") }`;
|
||||
} else {
|
||||
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")
|
||||
let theTitle = document.querySelectorAll("article");
|
||||
if (theTitle.length > 0) {
|
||||
theTitle = theTitle[0].getAttribute("data-name").toContent().toTitleCase();
|
||||
if (document.querySelector("article").getAttribute("data-display") !== null) {
|
||||
theTitle = document.querySelector("article").getAttribute("data-display")
|
||||
}
|
||||
document.querySelector("title").innerHTML = `${theTitle} | ${ document.querySelector("title").getAttribute("data-site") }`
|
||||
}
|
||||
document.querySelector("title").innerHTML = `${theTitle} | ${ document.querySelector("title").getAttribute("data-site") }`
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user