(enabled)
| 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.'; |
no outgoing calls
no test coverage detected