Fix no message bug
This commit is contained in:
parent
37be780007
commit
e42c82ed07
1 changed files with 7 additions and 2 deletions
|
@ -18,8 +18,13 @@ const consoleColors={
|
|||
"white":"\x1B[0m\x1B[38;2;255;255;255m",
|
||||
"reset":"\x1B[0m\x1B[38;2;255;255;255m"
|
||||
}
|
||||
const parse=function(data, l, resetColor){
|
||||
//console.log(data)
|
||||
const parse=function(_data, l, resetColor){
|
||||
let data;
|
||||
if(typeof _data == "string"){
|
||||
data=JSON.parse(_data);
|
||||
} else {
|
||||
data=_data;
|
||||
}
|
||||
let nkt=false;
|
||||
if(!resetColor){
|
||||
resetColor=[consoleColors.reset];
|
||||
|
|
Loading…
Reference in a new issue