much simpler callback approach due to serveStatic with directories !!!

This commit is contained in:
2021-06-27 01:56:30 +02:00
parent 9ea541a1b4
commit 3c824bfc92
3 changed files with 43 additions and 112 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ xhr.onreadystatechange = function(){
}
function reloadTerminal() {
xhr.open("GET", "/terminal", true);
xhr.open("POST", "/app=terminal", true);
xhr.send();
setTimeout(reloadTerminal, 1000);
};