Fixed wrong title

This commit is contained in:
Eduard Urbach 2017-11-07 09:29:34 +01:00
parent 8587a16935
commit 1020d7dcc6

View File

@ -155,7 +155,7 @@ export class AnimeNotifier {
// Apply page title // Apply page title
let headers = document.getElementsByTagName("h1") let headers = document.getElementsByTagName("h1")
if(this.app.currentPath === "/" || headers.length === 0) { if(this.app.currentPath === "/" || headers.length === 0 || headers[0].innerText === "NOTIFY.MOE") {
if(document.title !== this.title) { if(document.title !== this.title) {
document.title = this.title document.title = this.title
} }