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

Function filterNetkbData

web/scripts/ragnar_modern.js:14145–14166  ·  view source on GitHub ↗
(filterType)

Source from the content-addressed store, hash-verified

14143
14144function handlePwnInstallClick() {
14145 return runPwnInstaller('install');
14146}
14147
14148function handlePwnRepairClick() {
14149 return runPwnInstaller('repair');
14150}
14151
14152function handlePwnReinstallClick() {
14153 return runPwnInstaller('reinstall');
14154}
14155
14156async function handlePwnSwap(targetMode) {
14157 const normalized = targetMode === 'pwnagotchi' ? 'pwnagotchi' : 'ragnar';
14158
14159 if (normalized === 'pwnagotchi' && !pwnStatus.installed) {
14160 addConsoleMessage('Install Pwnagotchi before swapping', 'warning');
14161 return;
14162 }
14163
14164 const buttonId = normalized === 'pwnagotchi' ? 'pwn-swap-to-pwn-btn' : 'pwn-swap-to-ragnar-btn';
14165 const button = document.getElementById(buttonId);
14166 if (button) {
14167 button.disabled = true;
14168 button.textContent = 'Scheduling switch...';
14169 button.classList.add('opacity-60', 'cursor-not-allowed');

Callers 1

clearNetkbSearchFunction · 0.70

Calls 3

addMethod · 0.80
filterMethod · 0.80
displayNetkbDataFunction · 0.70

Tested by

no test coverage detected