[Pkg-javascript-commits] [pdf.js] 32/116: Fixes B2G file open sequence.
David Prévot
taffit at moszumanska.debian.org
Fri Mar 6 16:19:58 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit d52289d8fd2d0b30e419e130c909e9ef29d40f60
Author: Yury Delendik <ydelendik at mozilla.com>
Date: Fri Jan 9 07:46:34 2015 -0600
Fixes B2G file open sequence.
---
web/viewer.js | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/web/viewer.js b/web/viewer.js
index 05b3a5c..d855d6a 100644
--- a/web/viewer.js
+++ b/web/viewer.js
@@ -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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list