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

Function injectNext

extensions/chrome/background.js:42–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

injectFunction · 0.70

Calls 2

injectorFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected