handle empty files more gracefully.

pull/54/head
Kai 4 years ago
parent 98c564ca57
commit b1181f0baf

@ -48,7 +48,15 @@ function loadFile(evt, onComplete) {
function setupInterface(data, file, urls) { function setupInterface(data, file, urls) {
if (data.data.length <= 0) return null; if (data.data.length <= 0) {
let empty_html = `
File is empty.
<a href="neat.html"> Load another one.</a>
`;
$('#tableregion').html(empty_html);
return null;
}
// private variables of app // private variables of app

Loading…
Cancel
Save