Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fail silently on non-osx / linux. #11

Merged
merged 1 commit into from

2 participants

Paul Miller TJ Holowaychuk
Paul Miller

Currently calling growl() on unsupported platforms throws TypeError. The patch fixes it.

TJ Holowaychuk tj merged commit 2a7ba1f into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 9, 2012
  1. Paul Miller

    Fail silently on windows.

    paulmillr authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/growl.js
4 lib/growl.js
View
@@ -1,4 +1,3 @@
-
// Growl - Copyright TJ Holowaychuk <tj@vision-media.ca> (MIT Licensed)
/**
@@ -95,12 +94,13 @@ exports.version = '1.4.1'
function growl(msg, options, fn) {
var image
- , args = [cmd.pkg]
+ , args
, options = options || {}
, fn = fn || function(){};
// noop
if (!cmd) return fn(new Error('growl not supported on this platform'));
+ args = [cmd.pkg];
// image
if (image = options.image) {
Something went wrong with that request. Please try again.