Merge pull request #266 from cubedro/develop

WS_SECRET json accepts object
pull/5/head
Marian OANCΞA 9 years ago
commit 10541dcb9f
  1. 5
      app.js

@ -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!!!");
}
}

Loading…
Cancel
Save