diff options
-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']) { |