sparkles: Allow other data types then string in msg
This commit is contained in:
parent
bff096f55d
commit
304203f4d2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue