Fix backslash errors

This commit is contained in:
awsr
2025-11-09 15:31:47 -08:00
parent 2613c3eb22
commit 5436649075
+1 -1
View File
@@ -24,7 +24,7 @@ function htmlEscape(text) {
async function logMonitor() {
const addLogLine = (line) => {
try {
const l = JSON.parse(line.replaceAll('\n', ' '));
const l = JSON.parse(line.replaceAll('\n', ' ').replaceAll('\\', '\\\\'));
const row = document.createElement('tr');
// row.style = 'padding: 10px; margin: 0;';
const level = `<td style="color: var(--color-${l.level.toLowerCase()})">${l.level}</td>`;