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

Function searchNetkbData

web/scripts/ragnar_modern.js:14168–14178  ·  view source on GitHub ↗
(searchTerm)

Source from the content-addressed store, hash-verified

14166 if (button) {
14167 button.disabled = true;
14168 button.textContent = 'Scheduling switch...';
14169 button.classList.add('opacity-60', 'cursor-not-allowed');
14170 }
14171
14172 try {
14173 const result = await postPwnAPI('/api/pwnagotchi/swap', { target: normalized });
14174 if (normalized === 'pwnagotchi') _pwnSwapRequestedThisSession = true;
14175 const message = (result && result.message) ? result.message : `Switch scheduled to ${formatPwnModeLabel(normalized)}`;
14176 addConsoleMessage(message, 'info');
14177 if (result && result.status) {
14178 updatePwnagotchiUI(result.status);
14179 } else {
14180 refreshPwnagotchiStatus({ silent: true });
14181 }

Callers

nothing calls this directly

Calls 2

filterMethod · 0.80
displayNetkbDataFunction · 0.70

Tested by

no test coverage detected