mirror of
https://github.com/taigrr/homer
synced 2025-01-18 04:53:12 -08:00
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:
parent
0d6a177bae
commit
5530707ba2
2
app.js
2
app.js
@ -21,7 +21,7 @@ const app = new Vue({
|
|||||||
this.checkOffline();
|
this.checkOffline();
|
||||||
try {
|
try {
|
||||||
this.config = await this.getConfig();
|
this.config = await this.getConfig();
|
||||||
document.title = this.config.title + ' | Homer';
|
document.title = this.config.title + ' | ' + this.config.subtitle;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.offline = true;
|
this.offline = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user