Browse Source

Merge pull request #5632 from yurydelendik/b2g-start

Fixes B2G file open sequence.
Jonas Jenwald 10 years ago
parent
commit
8d0c442004
  1. 11
      web/viewer.js

11
web/viewer.js

@ -2252,11 +2252,14 @@ window.addEventListener('afterprint', function afterPrint(evt) {
// var fileURL = activity.source.data.url; // var fileURL = activity.source.data.url;
// //
// var url = URL.createObjectURL(blob); // var url = URL.createObjectURL(blob);
// PDFViewerApplication.open({url : url, originalUrl: fileURL}); // // We need to delay opening until all HTML is loaded.
// PDFViewerApplication.animationStartedPromise.then(function () {
// PDFViewerApplication.open({url : url, originalUrl: fileURL});
// //
// var header = document.getElementById('header'); // var header = document.getElementById('header');
// header.addEventListener('action', function() { // header.addEventListener('action', function() {
// activity.postResult('close'); // activity.postResult('close');
// });
// }); // });
//}); //});
//#endif //#endif

Loading…
Cancel
Save