This commit is contained in:
sairajzero 2019-07-24 16:02:14 +05:30
parent 35cbdf0ac1
commit 059a5e38de

View File

@ -58,13 +58,13 @@ function disableForm(formId, disableFlag) {
function connect(){ function connect(){
document.getElementById("alert-container").innerHTML = ''; document.getElementById("alert-container").innerHTML = '';
var serverPass = document.getElementById('serverPass'); var serverPass = document.getElementById('serverPass').value;
initselfWebSocket(serverPass).then(result => { initselfWebSocket(serverPass).then(result => {
customAlert(result,success); customAlert(result,'success');
disableForm('serverConnect',true); disableForm('serverConnect',true);
disableForm('userSignIn',false); disableForm('userSignIn',false);
}).catch(error => { }).catch(error => {
customAlert(error,danger); customAlert(error,'danger');
}); });
} }