X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=app.js;h=c35e4c7da7aa1f4c8a7297434d886473657a8508;hb=d5ef84f5a76cde0b89abf4b17525eeec95e78f35;hp=6c2ba9078ef73da8214034e360530a33e7a3a55c;hpb=db409f74e016b35421c2aaa2a5ade1e42553664e;p=github%2Fbastienwirtz%2Fhomer.git diff --git a/app.js b/app.js index 6c2ba90..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']) { @@ -87,7 +87,7 @@ Vue.component('service', { props: ['item'], template: `
- +