app.js: html title based on configuration

Use the title and subtitle defined in the configuration file as
html title.

Signed-off-by: sylv <sylv@sylv.io>
This commit is contained in:
sylv 2020-05-03 11:30:32 +02:00
parent 0d6a177bae
commit 5530707ba2
No known key found for this signature in database
GPG Key ID: 25073F1C55762455

2
app.js
View File

@ -21,7 +21,7 @@ const app = new Vue({
this.checkOffline();
try {
this.config = await this.getConfig();
document.title = this.config.title + ' | Homer';
document.title = this.config.title + ' | ' + this.config.subtitle;
} catch (error) {
this.offline = true;
}