docs read fix
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user