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

Function showProgress

example/tests/gm_download_test.js:314–318  ·  view source on GitHub ↗
(label)

Source from the content-addressed store, hash-verified

312 function skip(msg) { state.skip++; setCounts(); logLine(`⏭️ ${escapeHtml(msg)}`); }
313
314 function showProgress(label) {
315 $progressWrap.style.display = "";
316 $progressLabel.textContent = label;
317 $progressBar.style.width = "0%";
318 }
319 function updateProgress(loaded, total) {
320 if (total > 0) {
321 $progressBar.style.width = Math.min(100, Math.round((loaded / total) * 100)) + "%";

Callers 2

runOneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected