From d5ef84f5a76cde0b89abf4b17525eeec95e78f35 Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Tue, 14 Jan 2020 16:37:04 -0800 Subject: [PATCH] Fix error when no message at all. --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({ } // Look for a new message if an endpoint is provided. - if (this.config.message.url) { + if (this.config.message && this.config.message.url) { this.getMessage(this.config.message.url).then(function(message){ // keep the original config value if no value is provided by the endpoint for (const prop of ['title','style','content']) {