mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
fix some bugs
This commit is contained in:
parent
bbc940724f
commit
6f3fff5798
2 changed files with 52 additions and 8 deletions
|
@ -111,7 +111,10 @@ function nextPage(task, loadError) {
|
|||
|
||||
page.startRendering(
|
||||
ctx,
|
||||
function() { snapshotCurrentPage(page, task, failure); });
|
||||
function(e) {
|
||||
snapshotCurrentPage(page, task,
|
||||
(!failure && e) ? ('render: '+ e) : failure);
|
||||
});
|
||||
} catch(e) {
|
||||
failure = 'page setup: '+ e.toString();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue