forked from Hri7566/mpp-server-dev2
disable asyncconsole on linux
This commit is contained in:
parent
68afc2ca78
commit
c9cbbdf5ec
4
index.js
4
index.js
|
@ -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());
|
||||
}
|
||||
})
|
||||
}) : {};
|
||||
|
|
Loading…
Reference in New Issue