From c9dad692e18a7a36550c65b591640929d0352df0 Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Tue, 26 Jul 2016 00:37:02 +0300
Subject: terminal: small fixes
---
juick-ws/src/main/static/scripts.js | 4 ++--
juick-ws/src/main/webapp/WEB-INF/templates/index.html | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
(limited to 'juick-ws/src/main')
diff --git a/juick-ws/src/main/static/scripts.js b/juick-ws/src/main/static/scripts.js
index 1a212563..3a7e4a5f 100644
--- a/juick-ws/src/main/static/scripts.js
+++ b/juick-ws/src/main/static/scripts.js
@@ -21,7 +21,7 @@ function refreshStatus() {
}, 5000);
}
-function keepalive() {
+function keepalive(ws) {
setTimeout(function() {
ws.send(" ");
keepalive();
@@ -42,5 +42,5 @@ ready(function() {
term.output("
" + JSON.stringify(JSON.parse(msg.data), null, 2));
}
refreshStatus();
- keepalive();
+ keepalive(ws);
})
\ No newline at end of file
diff --git a/juick-ws/src/main/webapp/WEB-INF/templates/index.html b/juick-ws/src/main/webapp/WEB-INF/templates/index.html
index e888e365..92090c8e 100644
--- a/juick-ws/src/main/webapp/WEB-INF/templates/index.html
+++ b/juick-ws/src/main/webapp/WEB-INF/templates/index.html
@@ -3,6 +3,7 @@