Skip to content

Commit

Permalink
Fixed bug: send notifications even if title not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandru Vladutu committed Dec 17, 2011
1 parent f6e97be commit 972b208
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions lib/growl.js
Expand Up @@ -150,20 +150,25 @@ exports.notify = function(msg, options, fn) {
args.push('--name', options.name);
}

// title
if (options.title) {
switch(cmd.type) {
case 'Darwin':
args.push(cmd.msg);
args.push('"' + msg + '"');
switch(cmd.type) {
case 'Darwin':
args.push(cmd.msg);
args.push('"' + msg + '"');
// title
if (options.title) {
args.push(options.title);
break;
case 'Linux':
}
break;
case 'Linux':
// title
if (options.title) {
args.push("'" + options.title + "'");
args.push(cmd.msg);
args.push("'" + msg + "'");
break;
}
} else {
args.push("'" + msg + "'");
}
break;
}

// execute
Expand Down

0 comments on commit 972b208

Please sign in to comment.