Prevent connections to no-SSL servers from HTTPS host
This commit is contained in:
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user