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