MCPcopy Create free account
hub / github.com/Justineo/github-hovercard / injectNext

Function injectNext

extensions/edge/background.js:43–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 let remaining = files.length;
42
43 function injectNext() {
44 if (remaining > 0) {
45 injector(id, {
46 file: files[index]
47 }, () => {
48 console.log('"' + files[index] + '" is injected.');
49 index++;
50 remaining--;
51 injectNext();
52 });
53 } else {
54 if (typeof callback === 'function') {
55 callback();
56 }
57 }
58 }
59 injectNext();
60}
61

Callers 1

injectFunction · 0.70

Calls 2

injectorFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected