Skips failed-to-download tests
This commit is contained in:
parent
297266f1d6
commit
702da7f3ea
4 changed files with 48 additions and 21 deletions
|
@ -152,6 +152,9 @@ function nextTask() {
|
|||
}
|
||||
|
||||
function getLastPageNum(task) {
|
||||
if (!task.pdfDoc) {
|
||||
return task.firstPage || 1;
|
||||
}
|
||||
var lastPageNum = task.lastPage || 0;
|
||||
if (!lastPageNum || lastPageNum > task.pdfDoc.numPages) {
|
||||
lastPageNum = task.pdfDoc.numPages;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue