mirror of
https://github.com/myronblair/jarvis
synced 2026-06-30 17:50:23 -05:00
Fix scanNetwork: remove undefined userAddr causing ReferenceError
This commit is contained in:
@@ -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.');
|
||||||
|
|||||||
Reference in New Issue
Block a user