Fixes #12 in the tab

This commit is contained in:
A McIlwraith 2024-09-13 11:00:52 -04:00
parent 5fa631a903
commit b5ab99da8d

View File

@ -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") }`
}
}