Merge pull request #307 from kkujala/master
Avoid browser-test stoppage when task.pdfDoc is undefined.
This commit is contained in:
commit
3a87671c75
@ -79,7 +79,7 @@ function nextTask() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isLastPage(task) {
|
function isLastPage(task) {
|
||||||
return (task.pdfDoc && (task.pageNum > task.pdfDoc.numPages));
|
return (!task.pdfDoc || (task.pageNum > task.pdfDoc.numPages));
|
||||||
}
|
}
|
||||||
|
|
||||||
function nextPage(task, loadError) {
|
function nextPage(task, loadError) {
|
||||||
|
Loading…
Reference in New Issue
Block a user