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

Function applyWardrivingEnabledState

web/scripts/ragnar_modern.js:17638–17646  ·  view source on GitHub ↗
(enabled)

Source from the content-addressed store, hash-verified

17636 // such as the service ExecStart being reverted away from the launcher
17637 // (e.g. by Pwnagotchi's own updater). Re-running the installer is idempotent.
17638 const repair = document.getElementById('pwn-health-repair');
17639 const showRepair = anyMissing && !status.installing;
17640 if (repair) {
17641 repair.classList.toggle('hidden', !showRepair);
17642 }
17643
17644 const repairMsg = document.getElementById('pwn-health-repair-msg');
17645 if (showRepair && repairMsg) {
17646 const missing = missingCritical.concat(missingOptional);
17647 repairMsg.textContent = missing.length
17648 ? `Missing or broken: ${missing.join(', ')}.`
17649 : 'Some components need attention. Re-run the installer to repair.';

Callers 2

checkServerCapabilitiesFunction · 0.70
toggleWardrivingEnabledFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected