From 1e3c90e94acedc3b11ce78b15118e373af1ad3c8 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Mon, 26 May 2025 15:26:10 +0300 Subject: [PATCH] web: fixed dummy switch on old firmware --- web/share/js/kvm/switch.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/share/js/kvm/switch.js b/web/share/js/kvm/switch.js index 4525ea8d..8ca6e41c 100644 --- a/web/share/js/kvm/switch.js +++ b/web/share/js/kvm/switch.js @@ -548,9 +548,12 @@ export function Switch() { let params = { "port": port, "edid_id": $("__switch-port-edid-selector").value, - "dummy": $("__switch-port-dummy-switch").checked, "name": $("__switch-port-name-input").value, }; + let el_dummy_switch = $("__switch-port-dummy-switch"); + if (el_dummy_switch) { // Only for devbuild or firmware >= 8 + params["dummy"] = $("__switch-port-dummy-switch").checked; + } for (let action of Object.keys(atx_actions)) { params[`atx_click_${action}_delay`] = tools.slider.getValue($(`__switch-port-atx-click-${action}-delay-slider`)); };