MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / onprogress

Function onprogress

example/tests/gm_download_test.js:450–454  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

448 const opts = {
449 ...details,
450 onprogress(p) {
451 progress.push(p);
452 try { details.onprogress && details.onprogress(p); } catch {}
453 updateProgress(p.loaded ?? p.done ?? 0, p.total ?? p.totalSize ?? -1);
454 },
455 onload(data) {
456 try { details.onload && details.onload(data); } catch {}
457 resolve({ kind: saveCancelled ? "save_cancelled" : "load", data });

Callers

nothing calls this directly

Calls 2

updateProgressFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected