Skip to content

Commit

Permalink
Add icon feature for OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Dudley committed Apr 5, 2015
1 parent 42aba77 commit 7136519
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/growl.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ switch(os.type()) {
, msg: '-message'
, title: '-title'
, subtitle: '-subtitle'
, icon: '-appIcon'
, sound: '-sound'
, url: '-open'
, priority: {
Expand Down Expand Up @@ -190,6 +191,9 @@ function growl(msg, options, fn) {
flag = flag || 'icon'
args.push('--' + flag, quote(image))
break;
case 'Darwin-NotificationCenter':
args.push(cmd.icon, quote(image));
break;
case 'Linux':
args.push(cmd.icon, quote(image));
// libnotify defaults to sticky, set a hint for transient notifications
Expand Down

0 comments on commit 7136519

Please sign in to comment.