mirror of
https://github.com/flarum/framework.git
synced 2025-05-22 22:59:57 +08:00
Set document.title on every page
This commit is contained in:
@ -10,6 +10,10 @@ class App {
|
||||
this.initializers.toArray().forEach((initializer) => initializer(this));
|
||||
}
|
||||
|
||||
setTitle(title) {
|
||||
document.title = (title ? title+' - ' : '')+this.config['forum_title'];
|
||||
}
|
||||
|
||||
route(name, params) {
|
||||
var url = this.routes[name][0].replace(/:([^\/]+)/g, function(m, t) {
|
||||
var value = params[t];
|
||||
|
Reference in New Issue
Block a user