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

Function schedulePwnLogStop

web/scripts/ragnar_modern.js:6579–6587  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6577 const cb = document.getElementById('watchtower-enabled');
6578 try {
6579 const d = await fetchAPI('/api/net/watchtower?limit=100&min_severity=high');
6580 if (cb) cb.checked = !!d.enabled;
6581 renderWatchtower(d);
6582 } catch (e) { /* offline */ }
6583 refreshIncidents('watchtower-incidents');
6584}
6585function onWatchtowerToggled(cb) {
6586 postAPI('/api/config', { watchtower_enabled: cb.checked })
6587 .then(() => {
6588 addConsoleMessage('Watchtower unified alerts ' + (cb.checked ? 'ON' : 'OFF'), 'info');
6589 if (cb.checked) setTimeout(watchtowerRefresh, 300); else renderWatchtower({ success: true, enabled: false });
6590 })

Callers 2

fetchPwnLogsFunction · 0.70

Calls 1

stopPwnLogStreamingFunction · 0.70

Tested by

no test coverage detected