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

Function loadCredentialsData

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

Source from the content-addressed store, hash-verified

4826}
4827
4828function wifiSurveyDelete() {
4829 const name = document.getElementById('wifi-hm-survey').value;
4830 const st = document.getElementById('wifi-hm-survey-status');
4831 if (!name) return;
4832 fetch('/api/net/wifi/surveys', { method: 'POST', headers: { 'Content-Type': 'application/json' },
4833 body: JSON.stringify({ action: 'delete', name }) })
4834 .then(r => r.json()).then(d => { if (st) st.textContent = 'deleted “' + name + '”'; wifiSurveyRefresh(d); })
4835 .catch(() => { if (st) st.textContent = 'delete failed'; });
4836}
4837
4838// ============================================================================

Callers 2

preloadAllTabsFunction · 0.70
loadTabDataFunction · 0.70

Calls 3

errorMethod · 0.80
fetchAPIFunction · 0.70
displayCredentialsTableFunction · 0.70

Tested by

no test coverage detected