Function
_getCompleted
(path, file, first = false)
Source from the content-addressed store, hash-verified
| 209 | } |
| 210 | |
| 211 | async function _getCompleted(path, file, first = false) // TODO: unfinished function |
| 212 | { |
| 213 | const readingProgress = relative.get('readingProgress'); |
| 214 | const progress = readingProgress[path]; |
| 215 | |
| 216 | if(progress && progress.pages) |
| 217 | return (progress.pages === progress.page) ? true : false; |
| 218 | |
| 219 | /*if(first) |
| 220 | { |
| 221 | |
| 222 | }*/ |
| 223 | |
| 224 | return false; |
| 225 | } |
| 226 | |
| 227 | async function getCompleted(path) |
| 228 | { |
Tested by
no test coverage detected