MCPcopy
hub / github.com/ollm/OpenComic / processReadingProgress

Function processReadingProgress

scripts/dom.js:489–506  ·  view source on GitHub ↗
(progress)

Source from the content-addressed store, hash-verified

487 handlebarsContext.comics = pathFiles;
488
489 const processReadingProgress = function(progress) {
490
491 const sha = progress.sha;
492 const thumbnail = thumbnails[sha];
493
494 progress.sha = sha;
495 progress.thumbnail = (thumbnail.cache) ? thumbnail.path : '';
496 progress.mainPath = mainPath;
497 progress.pathText = returnTextPath(progress.path, mainPath, true, !progress.ebook);
498 progress.exists = fileManager.simpleExists(progress.path);
499
500 progress.contextMenu = {
501 path: p.dirname(progress.path),
502 };
503
504 return progress;
505
506 }
507
508 // Comic reading progress
509 if(readingProgress)

Callers 1

loadFilesIndexPageFunction · 0.85

Calls 1

returnTextPathFunction · 0.85

Tested by

no test coverage detected