()
| 1210 | } |
| 1211 | |
| 1212 | function getBindMode() { |
| 1213 | const modeSelect = document.getElementById("bind-mode-select"); |
| 1214 | const mode = String(modeSelect?.value || "semi_auto").trim().toLowerCase() || "semi_auto"; |
| 1215 | if (ALLOWED_BIND_MODES.has(mode)) { |
| 1216 | return mode; |
| 1217 | } |
| 1218 | if (modeSelect) { |
| 1219 | modeSelect.value = "semi_auto"; |
| 1220 | } |
| 1221 | return "semi_auto"; |
| 1222 | } |
| 1223 | |
| 1224 | function updateSemiAutoActionsVisibility(mode) { |
| 1225 | const isSemiAuto = (mode || getBindMode()) === "semi_auto"; |
no outgoing calls
no test coverage detected