docs read fix

This commit is contained in:
JiriUhlir
2026-08-03 12:04:13 +02:00
parent eb7ee612c3
commit d50093e893
3 changed files with 69 additions and 15 deletions
+4
View File
@@ -177,6 +177,10 @@ function loadLazyPanel(panel) {
return response.text();
})
.then((text) => {
// Prázdná odpověď by panel jen vyprázdnila a vypadalo by to jako zaseknuté načítání.
if (!text.trim()) {
throw new Error("server vrátil prázdnou odpověď");
}
panel.innerHTML = text;
})
.catch((error) => {