Fixes B2G file open sequence.

This commit is contained in:
Yury Delendik 2015-01-09 07:46:34 -06:00
parent 5332c02a02
commit d52289d8fd

View File

@ -2301,11 +2301,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