2
1
mirror of https://github.com/s00500/nodeMessageBoard.git synced 2025-07-12 14:01:01 +00:00

Move demoMode to config.json

This commit is contained in:
2017-03-06 18:04:01 +01:00
parent fb084d299a
commit 1d4301ac8d
3 changed files with 10 additions and 2 deletions

4
server.js Normal file → Executable file
View File

@ -19,7 +19,9 @@ var numberRecieved = "";
var timeRecieved = "";
var color = 0;
module.exports.demoMode = 1;
module.exports.demoMode = function () {
return config('debug').chain().find({ param: 'demoMode' }).value()['value'];
};
// utility function for ucs2 decode
function ucs2Parse(ucs2){