1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 09:26:34 +02:00

fix: Application#updateTitle using m.route() instead of m.route.get()

This commit is contained in:
David Sevilla Martin
2020-08-08 15:43:14 -04:00
committed by Franz Liedke
parent 4af34265cc
commit c17d7cd23f

View File

@@ -264,7 +264,7 @@ export default class Application {
updateTitle() {
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');
document.title = count + pageTitleWithSeparator + title;
}