Added Promise.catch

Fixed Promise so it rejects on uncaught exception
Catch possible rejection on ViewHistory.setMultiple
This commit is contained in:
Samuel Chantaraud 2014-05-22 13:53:19 -04:00
parent d2da73b8c4
commit 37c3641fad
3 changed files with 19 additions and 4 deletions

View file

@ -1983,6 +1983,8 @@ function updateViewarea() {
'zoom': normalizedScaleValue,
'scrollLeft': intLeft,
'scrollTop': intTop
}).catch(function() {
// unable to write to storage
});
});
var href = PDFView.getAnchorUrl(pdfOpenParams);