MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / getBindMode

Function getBindMode

static/js/payment.js:1212–1222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1210}
1211
1212function 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
1224function updateSemiAutoActionsVisibility(mode) {
1225 const isSemiAuto = (mode || getBindMode()) === "semi_auto";

Callers 5

updateBindModeSpecificUiFunction · 0.85
onBindModeChangeFunction · 0.85
loadAccountsFunction · 0.85
createBindCardTaskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected