Skip to content

Commit

Permalink
update offscreen checkbox when ssl is toggled
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Sep 19, 2024
1 parent 4fe30fc commit d75129a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions html5/connect.html
Original file line number Diff line number Diff line change
Expand Up @@ -1546,9 +1546,10 @@ <h4 class="panel-title">Advanced options</h4>
const encoding = getparam("encoding") || "auto";
document.getElementById("encoding").value = encoding;

const offscreen = getboolparam("offscreen", XpraOffscreenWorker.isAvailable());
const ssl_enabled = document.getElementById("ssl").checked;
const offscreen = getboolparam("offscreen", XpraOffscreenWorker.isAvailable(ssl_enabled));
document.getElementById("offscreen").checked = offscreen;
if (!XpraOffscreenWorker.isAvailable()) {
if (!XpraOffscreenWorker.isAvailable(ssl_enabled)) {
document.getElementById("offscreen").disabled = true;
document.getElementById("offscreen").setAttribute("title", "not available in your browser");
document.getElementById("offscreen_label").classList.add("disabled");
Expand Down

0 comments on commit d75129a

Please sign in to comment.