Include image previews in notifications

// FREEBIE
This commit is contained in:
lilia 2015-09-14 13:56:02 -07:00
parent d89e3ccdc4
commit 50add90fd9
2 changed files with 12 additions and 7 deletions

View file

@ -198,6 +198,7 @@
title : options.title, title : options.title,
message : options.message || '', // required message : options.message || '', // required
iconUrl : options.iconUrl, iconUrl : options.iconUrl,
imageUrl : options.imageUrl,
items : options.items, items : options.items,
buttons : options.buttons buttons : options.buttons
}); });

View file

@ -61,8 +61,12 @@
}); });
} else { } else {
var m = this.at(0); var m = this.at(0);
var type = 'basic';
if (m.get('imageUrl')) {
type = 'image';
}
extension.notify({ extension.notify({
type : 'basic', type : type,
title : m.get('title'), title : m.get('title'),
message : m.get('message'), message : m.get('message'),
iconUrl : m.get('iconUrl'), iconUrl : m.get('iconUrl'),