X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=app.js;h=c35e4c7da7aa1f4c8a7297434d886473657a8508;hb=5fe53dce3c1e1d3357f614b0157dc55079dff913;hp=0cd75b53724263cf7c0d3d5f1fb959038db226a2;hpb=56c69e0d6bd7265afec6cd66a4875ebf6357ea7d;p=github%2Fbastienwirtz%2Fhomer.git 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']) {