Fix scanNetwork: remove undefined userAddr causing ReferenceError

This commit is contained in:
2026-05-30 03:59:23 +00:00
parent 785b0fa7ab
commit 0ac03a6bfe
+1 -1
View File
@@ -1303,7 +1303,7 @@ async function scanNetwork() {
const data = await api('network/scan'); const data = await api('network/scan');
const count = data.count ?? 0; const count = data.count ?? 0;
const msg = data.queued const msg = data.queued
? `Network scan dispatched to PVE1 probe, ${userAddr}. Currently showing ${count} active device${count!==1?'s':''} — panel will refresh with live results in approximately 40 seconds.` ? `Network scan dispatched to PVE1 probe, Sir. Currently showing ${count} active device${count!==1?'s':''} — panel will refresh with live results in approximately 40 seconds.`
: `Showing last known network data: ${count} active device${count!==1?'s':''} on 10.48.200.0/24. PVE1 probe scans automatically every 3 minutes.`; : `Showing last known network data: ${count} active device${count!==1?'s':''} on 10.48.200.0/24. PVE1 probe scans automatically every 3 minutes.`;
addMessage('jarvis', msg); addMessage('jarvis', msg);
speak(count + ' devices online.'); speak(count + ' devices online.');