diff --git a/bower.json b/bower.json index d9323c15c..65d744c42 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.972", + "version": "1.0.974", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 3b982b806..f8e762a86 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.972'; -PDFJS.build = 'c28f7d2'; +PDFJS.version = '1.0.974'; +PDFJS.build = '7f24b1d'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -7814,7 +7814,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; diff --git a/build/pdf.js b/build/pdf.js index e62207607..de81a1d13 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.972'; -PDFJS.build = 'c28f7d2'; +PDFJS.version = '1.0.974'; +PDFJS.build = '7f24b1d'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 29271a6ba..cbc68c61b 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.972'; -PDFJS.build = 'c28f7d2'; +PDFJS.version = '1.0.974'; +PDFJS.build = '7f24b1d'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -1687,7 +1687,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; diff --git a/package.json b/package.json index 4e99b3d06..f4bcf1362 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.972", + "version": "1.0.974", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",