Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSH Client Autorefresh #1

Merged
merged 2 commits into from
Aug 3, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Handled the code review comments
  • Loading branch information
sanchitmehta committed Aug 3, 2018
commit 5448f012acd77c6e1dfce0f7150b95f4dc7bf404
4 changes: 2 additions & 2 deletions public/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ var handleConnectionDisconnect = function () {
}
if (!refreshTimer && (siteStatus === "RUNNING")) {
document.getElementById('status').style.backgroundColor = 'red';
document.getElementById('status').innerHTML = 'SSH CONNECTION DISCONNECTED.ATTEMPTING TO RECONNECT';
document.getElementById('status').innerHTML = 'SSH CONNECTION DISCONNECTED. ATTEMPTING TO RECONNECT';
refreshTimer = true;
setTimeout(function () {
checkAvailability('https://' + window.location.hostname.replace('.scm', ''), 100000, false);
Expand Down Expand Up @@ -181,4 +181,4 @@ socket.on('connect', function () {
document.getElementById('status').innerHTML = 'ERROR ' + err;
}
});
})
});