(path)
| 125 | } |
| 126 | |
| 127 | async function readPages(path) |
| 128 | { |
| 129 | const readingProgress = relative.get('readingProgress'); |
| 130 | const paths = await findReadingProgressPaths(path, false); |
| 131 | |
| 132 | let pages = 0; |
| 133 | |
| 134 | for(const key of paths) |
| 135 | { |
| 136 | const progress = readingProgress[key]; |
| 137 | |
| 138 | if(progress && progress.page && fileManager.simpleExists(key, true)) |
| 139 | pages += progress.page; |
| 140 | } |
| 141 | |
| 142 | return pages; |
| 143 | } |
| 144 | |
| 145 | var readingPages = false; |
| 146 |
no test coverage detected