(event)
| 8796 | _ndBusy(btn, true, 'Listening…'); |
| 8797 | out.classList.remove('hidden'); |
| 8798 | out.innerHTML = '<p class="text-sm text-gray-400">Passively capturing SMB + LLMNR/NBT-NS/mDNS…</p>'; |
| 8799 | try { |
| 8800 | _smbFillIfaces(); |
| 8801 | const qs = '?seconds=' + encodeURIComponent(secs) + (iface ? '&interface=' + encodeURIComponent(iface) : ''); |
| 8802 | const d = await fetchAPI('/api/net/smb-watch' + qs); |
| 8803 | if (!d || d.success === false) { |
| 8804 | const msg = (d && d.error) || 'failed'; |
nothing calls this directly
no test coverage detected