1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Merge pull request #3456 from brendandahl/cap-image-size

Limit image size to 1024*1024 for b2g.
This commit is contained in:
Brendan Dahl 2013-07-11 11:44:51 -07:00
commit 077f08fa6d
5 changed files with 26 additions and 2 deletions

View file

@ -3249,6 +3249,7 @@ window.addEventListener('afterprint', function afterPrint(evt) {
//#if B2G
//window.navigator.mozSetMessageHandler('activity', function(activity) {
// var url = activity.source.data.url;
// PDFJS.maxImageSize = 1024 * 1024;
// PDFView.open(url);
// var cancelButton = document.getElementById('activityClose');
// cancelButton.addEventListener('click', function() {