MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / tickAwaitingTimer

Function tickAwaitingTimer

example/tests/gm_download_test.js:369–376  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

367 _verdictTimerId = setInterval(tickAwaitingTimer, 250);
368 }
369 function tickAwaitingTimer() {
370 const remaining = Math.max(0, Math.ceil((_verdictDeadline - performance.now()) / 1000));
371 $awaitingTimer.textContent = `auto-skip in ${remaining}s`;
372 if (remaining === 0) {
373 // Time's up — auto-skip so the runner doesn't hang.
374 resolveVerdict({ verdict: "skip", reason: "timed out waiting for verdict" });
375 }
376 }
377 function hideAwaiting() {
378 $awaitingWrap.style.display = "none";
379 $awaitingLabel.innerHTML = "";

Callers 1

showAwaitingFunction · 0.85

Calls 1

resolveVerdictFunction · 0.85

Tested by

no test coverage detected