Skip to content

Commit

Permalink
simplify: has_session_storage does not change
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed May 9, 2024
1 parent 529e293 commit 5514525
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions html5/connect.html
Original file line number Diff line number Diff line change
Expand Up @@ -972,12 +972,8 @@ <h4 class="panel-title">Advanced options</h4>
//passwords would be sent on URL,
//so show insecure checkbox whenever ssl is off:
ssl_input.onchange = function () {
$("input#password").prop(
"disabled",
!has_session_storage &&
!ssl_input.checked &&
!insecure_input.checked
);
const safe = ssl_input.checked || insecure_input.checked;
$("input#password").prop("disabled", !safe);
if (ssl_input.checked) {
$("span#insecure-span").hide();
aes_input.checked = false;
Expand Down

0 comments on commit 5514525

Please sign in to comment.