Skip to content

Commit

Permalink
Fixes B2G file open sequence.
Browse files Browse the repository at this point in the history
  • Loading branch information
yurydelendik committed Jan 9, 2015
1 parent 5332c02 commit d52289d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions web/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d52289d

Please sign in to comment.