[Pkg-javascript-commits] [pdf.js] 34/139: Fix of pdf not loading on android (issue 5427)

David Prévot taffit at moszumanska.debian.org
Fri Jan 9 21:18:24 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 46238c30cf6bc0eadaf66e964609902d5815c3bf
Author: thejdeep <tejdeepg at gmail.com>
Date:   Mon Oct 27 18:50:18 2014 +0530

    Fix of pdf not loading on android (issue 5427)
    
    Fix for pdf on android not visible
    
    Fix for pdf on android not visible
---
 src/core/network.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/core/network.js b/src/core/network.js
index d4a49fc..48befb4 100644
--- a/src/core/network.js
+++ b/src/core/network.js
@@ -116,7 +116,10 @@ var NetworkManager = (function NetworkManagerClosure() {
       }
 
       if (args.onProgressiveData) {
-        xhr.responseType = 'moz-chunked-arraybuffer';
+        // Some legacy browsers might throw an exception.
+        try {
+          xhr.responseType = 'moz-chunked-arraybuffer';
+        } catch(e) {}
         if (xhr.responseType === 'moz-chunked-arraybuffer') {
           pendingRequest.onProgressiveData = args.onProgressiveData;
           pendingRequest.mozChunked = true;

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