(data)
| 11910 | |
| 11911 | if (updateCustomStatus) { |
| 11912 | customStatusEl.textContent = `Scan complete for ${ip}: ${portCount} open ports found.`; |
| 11913 | customStatusEl.dataset.currentIp = ''; |
| 11914 | } |
| 11915 | |
| 11916 | // Refresh network table to show updated port information |
| 11917 | if (currentTab === 'network') { |
| 11918 | loadNetworkData(); |
| 11919 | } |
| 11920 | break; |
| 11921 | |
| 11922 | case 'deep_scan_error': |
| 11923 | addConsoleMessage(`❌ Deep scan error for ${ip}: ${message}`, 'error'); |
| 11924 | |
| 11925 | // Update button to show error |
| 11926 | if (button) { |
| 11927 | button.classList.remove('bg-blue-600', 'cursor-wait'); |
| 11928 | button.classList.add('bg-red-600'); |
| 11929 | button.textContent = '❌ Error'; |
| 11930 | button.disabled = true; |
| 11931 | button.dataset.scanStatus = 'error'; |
| 11932 | // Save the updated state |
| 11933 | saveDeepScanButtonState(ip); |
| 11934 | |
| 11935 | // Reset button after 3 seconds |
| 11936 | setTimeout(() => { |
| 11937 | if (document.getElementById(buttonId)) { |
| 11938 | button.classList.remove('bg-red-600'); |
| 11939 | button.classList.add('bg-purple-600', 'hover:bg-purple-700'); |
| 11940 | button.textContent = 'Deep Scan'; |
no outgoing calls
no test coverage detected