MCPcopy Create free account
hub / github.com/ollm/OpenComic / updateProgress

Function updateProgress

scripts/reading/progress.js:349–367  ·  view source on GitHub ↗
(path, progress = false)

Source from the content-addressed store, hash-verified

347}
348
349async function updateProgress(path, progress = false)
350{
351 progress = progress || await get(path, false); // false to force a recount
352
353 const sizes = [
354 false,
355 100,
356 150,
357 200,
358 250,
359 300,
360 ];
361
362 for(const size of sizes)
363 {
364 const folderSha = sha1(path+(size ? '?size='+size : ''));
365 dom.addProgressToDom(folderSha, progress, true);
366 }
367}
368
369function purge()
370{

Callers 2

readFunction · 0.85
unreadFunction · 0.85

Calls 2

sha1Function · 0.85
getFunction · 0.70

Tested by

no test coverage detected