Fix: Don't log an empty string when not overriding debug.
Firefox was logging <empty string> because the overrideStyle variable wasn't being set.
This commit is contained in:
parent
93f0bfc84c
commit
ad74b77fd8
|
@ -89,7 +89,11 @@ export function log(message: any, override = false): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (debug || override) {
|
if (debug || override) {
|
||||||
console.debug(prefix, overrideStyle, message);
|
if (overrideStyle.length > 0) {
|
||||||
|
console.debug(prefix, overrideStyle, message);
|
||||||
|
} else {
|
||||||
|
console.debug(prefix, message);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue