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

Function applySelectedProfile

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

Source from the content-addressed store, hash-verified

7338 const tag = i.type === 'wifi' ? ' (WiFi)' : i.type === 'ethernet' ? ' (LAN)' : (i.type ? ' (' + i.type + ')' : '');
7339 o.textContent = i.name + tag;
7340 sel.appendChild(o);
7341 });
7342 sel.dataset.filled = '1';
7343 }).catch(() => {});
7344}
7345async function runNdpWatch() {
7346 const out = document.getElementById('ndp-results');
7347 if (!out) return;
7348 const btn = (typeof event !== 'undefined' && event && event.target) ? event.target : null;
7349 const ifaceSel = document.getElementById('ndp-iface');
7350 const iface = ifaceSel && ifaceSel.value ? ifaceSel.value : '';
7351 const secsEl = document.getElementById('ndp-secs');
7352 const secs = secsEl && secsEl.value ? secsEl.value : '12';
7353 _ndBusy(btn, true, 'Listening…');

Callers

nothing calls this directly

Calls 2

addConsoleMessageFunction · 0.70
confirmApplyProfileFunction · 0.70

Tested by

no test coverage detected