2
1
mirror of https://github.com/s00500/nodeMessageBoard.git synced 2025-07-13 00:11:00 +00:00

Move debug to config

This commit is contained in:
2017-03-08 16:20:51 +01:00
parent d1a99e9f65
commit 462b2a0f9e
3 changed files with 10 additions and 1 deletions

View File

@ -23,6 +23,11 @@ module.exports.demoMode = function () {
return config('debug').chain().find({ param: 'demoMode' }).value()['value'];
};
module.exports.debugMode = function () {
return config('debug').chain().find({ param: 'debugMode' }).value()['value'];
};
// utility function for ucs2 decode
function ucs2Parse(ucs2){
codeArray = ucs2.match(/.{1,4}/g);