aboutsummaryrefslogtreecommitdiffhomepage
path: root/app.js
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2020-01-14 16:37:04 -0800
committerBastien Wirtz <bastien.wirtz@gmail.com>2020-01-14 16:37:04 -0800
commitd5ef84f5a76cde0b89abf4b17525eeec95e78f35 (patch)
treea26f394f4abfe2cf222b78bede7d7f70bd1dba7f /app.js
parent250c67dc159c96aace860df8428e1ddff90853b5 (diff)
downloadhomer-d5ef84f5a76cde0b89abf4b17525eeec95e78f35.tar.gz
homer-d5ef84f5a76cde0b89abf4b17525eeec95e78f35.tar.zst
homer-d5ef84f5a76cde0b89abf4b17525eeec95e78f35.zip
Fix error when no message at all.
Diffstat (limited to 'app.js')
-rw-r--r--app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.js b/app.js
index 0cd75b5..c35e4c7 100644
--- a/app.js
+++ b/app.js
@@ -25,7 +25,7 @@ const app = new Vue({
25 } 25 }
26 26
27 // Look for a new message if an endpoint is provided. 27 // Look for a new message if an endpoint is provided.
28 if (this.config.message.url) { 28 if (this.config.message && this.config.message.url) {
29 this.getMessage(this.config.message.url).then(function(message){ 29 this.getMessage(this.config.message.url).then(function(message){
30 // keep the original config value if no value is provided by the endpoint 30 // keep the original config value if no value is provided by the endpoint
31 for (const prop of ['title','style','content']) { 31 for (const prop of ['title','style','content']) {