| 5360 | const cb = document.getElementById('wifidef-auto'); if (cb) cb.checked = false; |
| 5361 | _wifidefSaveOpts(); |
| 5362 | _wifidefUpdateRunUI(); |
| 5363 | const st = document.getElementById('wifidef-status'); |
| 5364 | if (st) st.textContent = 'Continuous scan stopped'; |
| 5365 | } |
| 5366 | |
| 5367 | function _wifidefUpdateRunUI() { |
| 5368 | const scan = document.getElementById('wifidef-scan-btn'); |
| 5369 | const stop = document.getElementById('wifidef-stop-btn'); |
| 5370 | if (scan) scan.classList.toggle('hidden', _wifidef.continuous); |
| 5371 | if (stop) stop.classList.toggle('hidden', !_wifidef.continuous); |
| 5372 | } |
| 5373 | |
| 5374 | // Must match wifi_defense.py `_BUILD`. If the running service reports something |
| 5375 | // else, the webapp is executing an OLD wifi_defense module (service not restarted |
| 5376 | // after a git pull) — the #1 cause of "the fix didn't work in the web UI". |
| 5377 | const WIFIDEF_BUILD = '20260902-halehound-toolnames'; |
| 5378 | |