mirror of
https://github.com/bastienwirtz/homer.git
synced 2026-07-18 00:45:57 +00:00
Fix error when no message at all.
This commit is contained in:
parent
250c67dc15
commit
d5ef84f5a7
1 changed files with 1 additions and 1 deletions
2
app.js
2
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']) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue