Prevent connections to no-SSL servers from HTTPS host

This commit is contained in:
Carlos
2019-09-24 11:55:07 +02:00
parent 4fc298c4c5
commit 15265c50c2
4 changed files with 16 additions and 2 deletions

View File

@ -11,6 +11,13 @@ $(document).ready(function() {
$("#serverContainer").hide();
setLanguage(persistenceManager.getLanguage());
updateServerList();
//Check SSL host
if (location.protocol != 'https:'){
$("#addServerModalSslAdvice").hide();
}else{
$("#server-ssl").prop("disabled", true);
}
});
/**