disable asyncconsole on linux

This commit is contained in:
BopItFreak 2019-06-12 11:35:22 -04:00
parent 68afc2ca78
commit c9cbbdf5ec
1 changed files with 2 additions and 2 deletions

View File

@ -8,10 +8,10 @@ const AsyncConsole = require('asyncconsole')
let Server = require("./src/Server.js");
let config = require('./src/db/config.json');
global.SERVER = new Server(config);
let console = new AsyncConsole("", input => {
let console = process.platform == 'win32' ? new AsyncConsole("", input => {
try {
console.log(JSON.stringify(eval(input)));
} catch(e) {
console.log(e.toString());
}
})
}) : {};