Include image previews in notifications
// FREEBIE
This commit is contained in:
parent
d89e3ccdc4
commit
50add90fd9
2 changed files with 12 additions and 7 deletions
|
@ -194,12 +194,13 @@
|
|||
if (chrome) {
|
||||
chrome.notifications.clear('signal');
|
||||
chrome.notifications.create('signal', {
|
||||
type : options.type,
|
||||
title : options.title,
|
||||
message : options.message || '', // required
|
||||
iconUrl : options.iconUrl,
|
||||
items : options.items,
|
||||
buttons : options.buttons
|
||||
type : options.type,
|
||||
title : options.title,
|
||||
message : options.message || '', // required
|
||||
iconUrl : options.iconUrl,
|
||||
imageUrl : options.imageUrl,
|
||||
items : options.items,
|
||||
buttons : options.buttons
|
||||
});
|
||||
} else {
|
||||
var notification = new Notification(options.title, {
|
||||
|
|
|
@ -61,8 +61,12 @@
|
|||
});
|
||||
} else {
|
||||
var m = this.at(0);
|
||||
var type = 'basic';
|
||||
if (m.get('imageUrl')) {
|
||||
type = 'image';
|
||||
}
|
||||
extension.notify({
|
||||
type : 'basic',
|
||||
type : type,
|
||||
title : m.get('title'),
|
||||
message : m.get('message'),
|
||||
iconUrl : m.get('iconUrl'),
|
||||
|
|
Loading…
Reference in a new issue