Skip to content

Commit

Permalink
Merge pull request #5632 from yurydelendik/b2g-start
Browse files Browse the repository at this point in the history
Fixes B2G file open sequence.
  • Loading branch information
Snuffleupagus committed Jan 9, 2015
2 parents 6ceb652 + d52289d commit 8d0c442
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 @@ -2252,11 +2252,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 8d0c442

Please sign in to comment.