Permalink
Browse files

Merge pull request #19 from joshvermaire/escape-title

Force title to string
  • Loading branch information...
2 parents 68b84f2 + e1accc2 commit 281aeb79f91a559558340490793ae83d9df35c41 @tj committed Jul 5, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 lib/growl.js
  2. +1 −0 test.js
View
@@ -166,7 +166,7 @@ function growl(msg, options, fn) {
case 'Darwin':
args.push(cmd.msg);
args.push('"' + msg + '"');
- if (options.title) args.push(options.title);
+ if (options.title) args.push('"' + options.title + '"');
break;
case 'Linux':
if (options.title) {
View
@@ -14,3 +14,4 @@ growl('Show pdf filesystem icon', { image: 'article.pdf' })
growl('Show pdf filesystem icon', { image: 'article.pdf' }, function(){
console.log('callback');
})
+growl('Show pdf filesystem icon', { title: 'Use show()', image: 'article.pdf' })

0 comments on commit 281aeb7

Please sign in to comment.