MCPcopy Create free account
hub / github.com/Hattorius/CipherDrop / startProgress

Function startProgress

frontend/file.js:19–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18
19const startProgress = () => {
20 intervalId = setInterval(() => {
21 if (currentProgress < 80) {
22 currentProgress += 5;
23 } else if (currentProgress < 95 && state === 1) {
24 currentProgress += 5;
25 } else if (state === 2) {
26 currentProgress = 100;
27 clearInterval(intervalId);
28 }
29 progress(currentProgress);
30 }, 350);
31}
32
33const stopProgress = () => {
34 clearInterval(intervalId);

Callers 1

file.jsFile · 0.85

Calls 1

progressFunction · 0.85

Tested by

no test coverage detected