mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-05-29 09:28:06 +02:00
Secured logging color picking
This commit is contained in:
parent
04d3777e6f
commit
18ceb998e0
|
@ -59,10 +59,10 @@
|
|||
"]";
|
||||
if (typeof args[0] === "string"){
|
||||
args[0] = pre + " " + args[0];
|
||||
args.splice(1, 0, colors[level]);
|
||||
args.splice(1, 0, colors[level] || "");
|
||||
}
|
||||
else {
|
||||
args.unshift(colors[level]);
|
||||
args.unshift(colors[level] || "");
|
||||
args.unshift(pre);
|
||||
}
|
||||
console.log.apply(console, args);
|
||||
|
|
Loading…
Reference in New Issue
Block a user