adsasd
This commit is contained in:
@@ -89,8 +89,15 @@ if ($debugEnabled) {
|
||||
const file = select.value;
|
||||
if (!file) { content.innerHTML = '<p class="muted">Log auswählen, um Inhalt zu sehen.</p>'; return; }
|
||||
fetch('/debug?file=' + encodeURIComponent(file) + '&raw=1')
|
||||
.then(r => r.text())
|
||||
.then(r => {
|
||||
if (!r.ok) throw new Error('Request failed');
|
||||
return r.text();
|
||||
})
|
||||
.then(text => {
|
||||
if (!text.trim()) {
|
||||
content.innerHTML = '<p class="muted">Log ist leer.</p>';
|
||||
return;
|
||||
}
|
||||
const escape = (s) => s
|
||||
.replace(/&/g, '&')
|
||||
.replace(/</g, '<')
|
||||
|
||||
Reference in New Issue
Block a user