diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-01-14 16:37:04 -0800 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-01-14 16:37:04 -0800 |
commit | d5ef84f5a76cde0b89abf4b17525eeec95e78f35 (patch) | |
tree | a26f394f4abfe2cf222b78bede7d7f70bd1dba7f | |
parent | 250c67dc159c96aace860df8428e1ddff90853b5 (diff) | |
download | homer-d5ef84f5a76cde0b89abf4b17525eeec95e78f35.tar.gz homer-d5ef84f5a76cde0b89abf4b17525eeec95e78f35.tar.zst homer-d5ef84f5a76cde0b89abf4b17525eeec95e78f35.zip |
Fix error when no message at all.
-rw-r--r-- | app.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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']) { |