MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / restartAutoRefresh

Function restartAutoRefresh

static/js/logs.js:223–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221}
222
223function restartAutoRefresh() {
224 if (logsState.timer) {
225 clearInterval(logsState.timer);
226 logsState.timer = null;
227 }
228 if (!logsState.autoRefreshSeconds) return;
229 logsState.timer = setInterval(() => {
230 loadLogs(true);
231 loadStats(true);
232 }, logsState.autoRefreshSeconds * 1000);
233}
234
235function bindEvents() {
236 el.refreshBtn.addEventListener("click", () => {

Callers 2

bindEventsFunction · 0.85
logs.jsFile · 0.85

Calls 2

loadLogsFunction · 0.85
loadStatsFunction · 0.70

Tested by

no test coverage detected