MCPcopy Create free account
hub / github.com/Eltaurus-Lt/CourseDump2022 / onDownloadComplete

Function onDownloadComplete

background.js:23–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21 return new Promise(async (resolve, reject) => {
22 let iid, deltas = {};
23 const onDownloadComplete = delta => {
24 if (iid === undefined) {
25 deltas[delta.id] = delta;
26 } else if (delta.id == iid) {
27 checkDelta(delta);
28 }
29 }
30 chrome.downloads.onChanged.addListener(onDownloadComplete);
31 function checkDelta(delta) {
32 if (delta.state && delta.state.current === "complete") {

Callers

nothing calls this directly

Calls 1

checkDeltaFunction · 0.85

Tested by

no test coverage detected