Browse Source

Uplift for B2G bug 1009780 - Improve open mechanism for downloads.

Yury Delendik 11 years ago
parent
commit
6f79aef03a
  1. 5
      web/viewer.js

5
web/viewer.js

@ -2459,9 +2459,12 @@ window.addEventListener('afterprint', function afterPrint(evt) { @@ -2459,9 +2459,12 @@ window.addEventListener('afterprint', function afterPrint(evt) {
//#if B2G
//window.navigator.mozSetMessageHandler('activity', function(activity) {
// var url = activity.source.data.url;
// var blob = activity.source.data.blob;
// PDFJS.maxImageSize = 1024 * 1024;
//
// var url = URL.createObjectURL(blob);
// PDFView.open(url);
//
// var cancelButton = document.getElementById('activityClose');
// cancelButton.addEventListener('click', function() {
// activity.postResult('close');

Loading…
Cancel
Save