Skip to content

Commit

Permalink
Fixes #51, continued type Darwin-NotificationCenter replacement of \n
Browse files Browse the repository at this point in the history
whoops, first commit was incorrect.
  • Loading branch information
Deph0 committed Oct 17, 2014
1 parent 42aba77 commit 0b5e8da
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/growl.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ function growl(msg, options, fn) {
switch(cmd.type) {
case 'Darwin-Growl':
args.push(cmd.msg);
args.push(quote(msg));
args.push(quote(msg).replace(/\\n/g, '\n'));
if (options.title) args.push(quote(options.title));
break;
case 'Darwin-NotificationCenter':
Expand All @@ -249,7 +249,7 @@ function growl(msg, options, fn) {
break;
case 'Linux-Growl':
args.push(cmd.msg);
args.push(quote(msg));
args.push(quote(msg).replace(/\\n/g, '\n'));
if (options.title) args.push(quote(options.title));
if (cmd.host) {
args.push(cmd.host.cmd, cmd.host.hostname)
Expand All @@ -259,13 +259,13 @@ function growl(msg, options, fn) {
if (options.title) {
args.push(quote(options.title));
args.push(cmd.msg);
args.push(quote(msg));
args.push(quote(msg).replace(/\\n/g, '\n'));
} else {
args.push(quote(msg));
args.push(quote(msg).replace(/\\n/g, '\n'));
}
break;
case 'Windows':
args.push(quote(msg));
args.push(quote(msg).replace(/\\n/g, '\n'));
if (options.title) args.push(cmd.title + quote(options.title));
if (options.url) args.push(cmd.url + quote(options.url));
break;
Expand Down

0 comments on commit 0b5e8da

Please sign in to comment.