1
Fork 0

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:
Bauke 2020-01-12 22:09:23 +01:00
parent 93f0bfc84c
commit ad74b77fd8
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 5 additions and 1 deletions

View File

@ -89,7 +89,11 @@ export function log(message: any, override = false): void {
} }
if (debug || override) { if (debug || override) {
if (overrideStyle.length > 0) {
console.debug(prefix, overrideStyle, message); console.debug(prefix, overrideStyle, message);
} else {
console.debug(prefix, message);
}
} }
} }