Skip to content

Commit

Permalink
WS_SECRET json accepts object
Browse files Browse the repository at this point in the history
  • Loading branch information
cubedro committed Aug 19, 2015
1 parent f4ac506 commit 1f5a8ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ if( !_.isUndefined(process.env.WS_SECRET) && !_.isNull(process.env.WS_SECRET) )
else
{
try {
WS_SECRET = require('./ws_secret.json');
var tmp_secret_json = require('./ws_secret.json');
WS_SECRET = _.values(tmp_secret_json);
}
catch (e)
{
console.error("WS_SECRET NOT SET");
console.error("WS_SECRET NOT SET!!!");
}
}

Expand Down

0 comments on commit 1f5a8ee

Please sign in to comment.