Merge pull request #5632 from yurydelendik/b2g-start

Fixes B2G file open sequence.
This commit is contained in:
Jonas Jenwald 2015-01-09 18:00:39 +01:00
commit 8d0c442004

View File

@ -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