mirror of
https://github.com/smittix/intercept.git
synced 2026-07-12 19:48:14 -07:00
Add debug logging for WiFi client card issues
Temporary console.log statements to diagnose why clients are not appearing in the device list. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4864,6 +4864,7 @@
|
|||||||
|
|
||||||
// Handle discovered WiFi client (called from batched update)
|
// Handle discovered WiFi client (called from batched update)
|
||||||
function handleWifiClientImmediate(client) {
|
function handleWifiClientImmediate(client) {
|
||||||
|
console.log('handleWifiClientImmediate:', client);
|
||||||
const isNew = !wifiClients[client.mac];
|
const isNew = !wifiClients[client.mac];
|
||||||
wifiClients[client.mac] = client;
|
wifiClients[client.mac] = client;
|
||||||
|
|
||||||
@@ -5196,8 +5197,12 @@
|
|||||||
|
|
||||||
// Add WiFi client card to device list
|
// Add WiFi client card to device list
|
||||||
function addWifiClientCard(client, isNew) {
|
function addWifiClientCard(client, isNew) {
|
||||||
|
console.log('addWifiClientCard called:', client.mac, 'isNew:', isNew);
|
||||||
const deviceList = document.getElementById('wifiDeviceListContent');
|
const deviceList = document.getElementById('wifiDeviceListContent');
|
||||||
if (!deviceList) return;
|
if (!deviceList) {
|
||||||
|
console.error('wifiDeviceListContent not found!');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Remove placeholder if present
|
// Remove placeholder if present
|
||||||
const placeholder = deviceList.querySelector('div[style*="text-align: center"]');
|
const placeholder = deviceList.querySelector('div[style*="text-align: center"]');
|
||||||
|
|||||||
Reference in New Issue
Block a user