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

Function setScanStrength

web/scripts/ragnar_modern.js:19731–19750  ·  view source on GitHub ↗
(strength)

Source from the content-addressed store, hash-verified

19729 try { localStorage.setItem('mesh_share_seen', String(peerCount || 0)); } catch (e) { /* ignore */ }
19730 _filesFlagSharedNew = false;
19731 _applyFilesFlag();
19732}
19733
19734async function restartService() {
19735 if (!confirm('This will restart the Ragnar service. The web interface may be temporarily unavailable. Continue?')) {
19736 return;
19737 }
19738
19739 try {
19740 addConsoleMessage('Restarting Ragnar service...', 'info');
19741 updateElement('service-status', 'Restarting...');
19742 document.getElementById('service-status').className = 'text-sm px-2 py-1 rounded bg-yellow-700 text-yellow-300';
19743
19744 const data = await postAPI('/api/system/restart-service', {});
19745
19746 if (data.success) {
19747 addConsoleMessage('Service restart initiated', 'success');
19748 addConsoleMessage('Service will be back online shortly...', 'info');
19749
19750 // Update status after delay
19751 setTimeout(() => {
19752 updateElement('service-status', 'Running');
19753 document.getElementById('service-status').className = 'text-sm px-2 py-1 rounded bg-green-700 text-green-300';

Callers

nothing calls this directly

Calls 1

addMethod · 0.80

Tested by

no test coverage detected