diff options
author | sylv <sylv@sylv.io> | 2020-05-03 11:30:32 +0200 |
---|---|---|
committer | sylv <sylv@sylv.io> | 2020-05-22 15:38:46 +0200 |
commit | 5530707ba28f0e2b04d2bc4aeedcca172025c849 (patch) | |
tree | 48fa28b9da870c56d589cb1c0af1abe77ea06446 | |
parent | 0d6a177bae29d74c9e91569947bcb48977c8e03d (diff) | |
download | homer-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.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 | } |