Browse Source

Fixes B2G file open sequence.

Yury Delendik 10 years ago
parent
commit
d52289d8fd
  1. 11
      web/viewer.js

11
web/viewer.js

@ -2301,11 +2301,14 @@ window.addEventListener('afterprint', function afterPrint(evt) { @@ -2301,11 +2301,14 @@ window.addEventListener('afterprint', function afterPrint(evt) {
// var fileURL = activity.source.data.url;
//
// 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');
// header.addEventListener('action', function() {
// activity.postResult('close');
// var header = document.getElementById('header');
// header.addEventListener('action', function() {
// activity.postResult('close');
// });
// });
//});
//#endif

Loading…
Cancel
Save