mirror of
https://github.com/flarum/core.git
synced 2025-08-11 10:55:47 +02:00
fix: Application#updateTitle using m.route() instead of m.route.get()
This commit is contained in:
committed by
Franz Liedke
parent
4af34265cc
commit
c17d7cd23f
@@ -264,7 +264,7 @@ export default class Application {
|
|||||||
|
|
||||||
updateTitle() {
|
updateTitle() {
|
||||||
const count = this.titleCount ? `(${this.titleCount}) ` : '';
|
const count = this.titleCount ? `(${this.titleCount}) ` : '';
|
||||||
const pageTitleWithSeparator = this.title && m.route() !== '/' ? this.title + ' - ' : '';
|
const pageTitleWithSeparator = this.title && m.route.get() !== '/' ? this.title + ' - ' : '';
|
||||||
const title = this.forum.attribute('title');
|
const title = this.forum.attribute('title');
|
||||||
document.title = count + pageTitleWithSeparator + title;
|
document.title = count + pageTitleWithSeparator + title;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user