1
0
Fork 0
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:
Brendan Dahl 2011-11-28 16:55:09 -08:00
parent 59d9dfc014
commit d6925b13ba
6 changed files with 119 additions and 15 deletions

View file

@ -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) {