MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / refreshDashboard

Function refreshDashboard

web/scripts/ragnar_modern.js:11708–11716  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11706}
11707document.addEventListener('DOMContentLoaded', _restoreThreatMonitorState);
11708
11709// Populate the External Threat Detection interface selector from the WiFi
11710// interfaces the analyzer sees (same source as the WiFi Analyzer tab).
11711async function _threatFillIfaces() {
11712 const sel = document.getElementById('threat-sweep-iface');
11713 if (!sel) return;
11714 try {
11715 const resp = await fetch('/api/net/wifi/interfaces');
11716 const d = await resp.json();
11717 const ifs = (d && d.interfaces) || [];
11718 const cur = sel.value;
11719 sel.innerHTML = '<option value="">Auto</option>' + ifs.map(i => {

Callers 3

handleAutomationToggleFunction · 0.70
saveConfigFunction · 0.70
saveAITokenFunction · 0.70

Calls 4

errorMethod · 0.80
fetchAPIFunction · 0.70
updateDashboardStatusFunction · 0.70

Tested by

no test coverage detected