summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/stream.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-07-14 16:34:28 +0300
committerDevaev Maxim <[email protected]>2021-07-14 16:34:28 +0300
commitc19c02d12f0da3c1aa8efee298cc56c30eba5647 (patch)
treee9704f12faac6ba4fac2cb4a8acb82ef3f79b28f /web/share/js/kvm/stream.js
parentc903f60f85c143cf9234b88e2106f16d0a5fead1 (diff)
refactoring
Diffstat (limited to 'web/share/js/kvm/stream.js')
-rw-r--r--web/share/js/kvm/stream.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js
index 272df998..065a0b39 100644
--- a/web/share/js/kvm/stream.js
+++ b/web/share/js/kvm/stream.js
@@ -438,7 +438,7 @@ export function Streamer() {
$("stream-resolution-selector").onchange = (() => __sendParam("resolution", $("stream-resolution-selector").value));
- tools.radioSetOnClick("stream-mode-radio", __clickModeRadio);
+ tools.radioSetOnClick("stream-mode-radio", __clickModeRadio, false);
tools.setOnClick($("stream-screenshot-button"), __clickScreenshotButton);
tools.setOnClick($("stream-reset-button"), __clickResetButton);
@@ -612,7 +612,6 @@ export function Streamer() {
let mode = tools.radioGetValue("stream-mode-radio");
tools.storage.set("stream.mode", mode);
if (mode !== __streamer.getMode()) {
- setTimeout(() => tools.radioSetValue("stream-mode-radio", mode), 100);
tools.hiddenSetVisible($("stream-image"), (mode !== "janus"));
tools.hiddenSetVisible($("stream-video"), (mode === "janus"));
if (mode === "janus") {