Fix grid overlay color showing as none

This commit is contained in:
Keavon Chambers
2024-07-27 17:25:33 -07:00
parent d6dad92659
commit a4a513911d
4 changed files with 9 additions and 5 deletions
+2 -1
View File
@@ -95,7 +95,8 @@ impl log::Log for WasmLog {
let file = record.file().unwrap_or_else(|| record.target());
let line = record.line().map_or_else(|| "[Unknown]".to_string(), |line| line.to_string());
let msg = &format!("%c{} {file}:{line} \n{}%c", name, record.args());
let args = record.args();
let msg = &format!("%c{name}\t{file}:{line}\n{args}"); // The %c is replaced by the message color
log(msg, color)
}