1
0
Fork 0

sparkles: Allow other data types then string in msg

This commit is contained in:
Joost De Cock 2018-12-18 14:53:56 +01:00
parent bff096f55d
commit 304203f4d2

View file

@ -34,7 +34,7 @@ debug.hooks = {
typeof data === "object" &&
typeof data.type === "string" &&
typeof data.label === "string" &&
typeof data.msg === "string" &&
typeof data.msg !== "undefined" &&
Object.keys(data).length === 3) {
// Make it pretty
debug.log("%c"+data.label, debug.style(data.type), data.msg);