]> git.immae.eu Git - github/bastienwirtz/homer.git/commitdiff
app.js: html title based on configuration 60/head
authorsylv <sylv@sylv.io>
Sun, 3 May 2020 09:30:32 +0000 (11:30 +0200)
committersylv <sylv@sylv.io>
Fri, 22 May 2020 13:38:46 +0000 (15:38 +0200)
Use the title and subtitle defined in the configuration file as
html title.

Signed-off-by: sylv <sylv@sylv.io>
app.js

diff --git a/app.js b/app.js
index e79611069f9d779d4a09e969157ec805b0c24628..9e6bdd9a12d813efec730f25613701cb41a45389 100644 (file)
--- a/app.js
+++ b/app.js
@@ -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;
         }