Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
default environment to node_env
  • Loading branch information
coryvirok committed Nov 10, 2012
1 parent 6dda6b0 commit 58893be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ratchet.js
Expand Up @@ -85,6 +85,8 @@ exports.init = function(accessToken, options) {
*
*/
if (!initialized) {
options.environment = options.environment || process.env.NODE_ENV;

api.init(accessToken, options);
notifier.init(api, options);
initialized = true;
Expand Down

0 comments on commit 58893be

Please sign in to comment.