mirror of
https://github.com/smittix/intercept.git
synced 2026-07-12 11:38:12 -07:00
fix(drone): show sidebar panel and expose SDR config options
Remove inline style="display: none;" that was preventing the droneMode panel from becoming visible when the active class was toggled — inline styles override CSS class rules without !important. Add RTL-SDR device index and HackRF toggle inputs that the backend already accepted but were never surfaced in the UI; wire them through to the /drone/start POST body. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -159,10 +159,12 @@
|
||||
|
||||
function _start() {
|
||||
const iface = document.getElementById('droneWifiIface')?.value.trim() || null;
|
||||
const rtlIndex = parseInt(document.getElementById('droneRtlIndex')?.value, 10) || 0;
|
||||
const useHackrf = document.getElementById('droneUseHackrf')?.checked ?? true;
|
||||
fetch('/drone/start', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ wifi_iface: iface }),
|
||||
body: JSON.stringify({ wifi_iface: iface, rtl_sdr_index: rtlIndex, use_hackrf: useHackrf }),
|
||||
})
|
||||
.then(function (r) { return r.json(); })
|
||||
.then(function () { _setRunningUI(true); _refreshStatus(); })
|
||||
|
||||
Reference in New Issue
Block a user