much simpler callback approach due to serveStatic with directories !!!
This commit is contained in:
+1
-1
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user