aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorsylv <sylv@sylv.io>2020-05-03 11:30:32 +0200
committersylv <sylv@sylv.io>2020-05-22 15:38:46 +0200
commit5530707ba28f0e2b04d2bc4aeedcca172025c849 (patch)
tree48fa28b9da870c56d589cb1c0af1abe77ea06446
parent0d6a177bae29d74c9e91569947bcb48977c8e03d (diff)
downloadhomer-5530707ba28f0e2b04d2bc4aeedcca172025c849.tar.gz
homer-5530707ba28f0e2b04d2bc4aeedcca172025c849.tar.zst
homer-5530707ba28f0e2b04d2bc4aeedcca172025c849.zip
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>
-rw-r--r--app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.js b/app.js
index e796110..9e6bdd9 100644
--- a/app.js
+++ b/app.js
@@ -21,7 +21,7 @@ const app = new Vue({
21 this.checkOffline(); 21 this.checkOffline();
22 try { 22 try {
23 this.config = await this.getConfig(); 23 this.config = await this.getConfig();
24 document.title = this.config.title + ' | Homer'; 24 document.title = this.config.title + ' | ' + this.config.subtitle;
25 } catch (error) { 25 } catch (error) {
26 this.offline = true; 26 this.offline = true;
27 } 27 }