Skip to content

Commit

Permalink
Merge pull request #53 from pdud/pd-osx-icon
Browse files Browse the repository at this point in the history
Add icon feature for OSX
  • Loading branch information
Joshua Appelman committed Jun 30, 2015
2 parents 42aba77 + 7136519 commit 380bca4
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 380bca4

Please sign in to comment.