Skip to content

Commit

Permalink
Merge pull request socketio#787 from MatthewMueller/master
Browse files Browse the repository at this point in the history
io.configure('development', function() {...}) will trigger if NODE_ENV is not defined.
  • Loading branch information
rauchg committed Mar 9, 2012
2 parents 5312e15 + a29525e commit 9431709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ Manager.prototype.disabled = function (key) {
Manager.prototype.configure = function (env, fn) {
if ('function' == typeof env) {
env.call(this);
} else if (env == process.env.NODE_ENV) {
} else if (env == (process.env.NODE_ENV || 'development')) {
fn.call(this);
}

Expand Down

0 comments on commit 9431709

Please sign in to comment.