mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Adding new errorback and code to display error messages.
This commit is contained in:
parent
59d9dfc014
commit
d6925b13ba
6 changed files with 119 additions and 15 deletions
|
@ -162,9 +162,11 @@ function nextPage(task, loadError) {
|
|||
|
||||
page.startRendering(
|
||||
ctx,
|
||||
function nextPageStartRendering(e) {
|
||||
snapshotCurrentPage(task, (!failure && e) ?
|
||||
('render : ' + e) : failure);
|
||||
function nextPageStartRendering() {
|
||||
snapshotCurrentPage(task, false);
|
||||
},
|
||||
function errorNextPageStartRendering(e) {
|
||||
snapshotCurrentPage(task, 'render : ' + e.message);
|
||||
}
|
||||
);
|
||||
} catch (e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue