Browse Source

PDF.js version 1.0.682

Yury Delendik 10 years ago
parent
commit
ad52951793
5 changed files with 12 additions and 12 deletions
  1. 1 1
      bower.json
  2. 4 4
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 4 4
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.0.680",
+  "version": "1.0.682",
   "keywords": [
     "Mozilla",
     "pdf",

+ 4 - 4
build/pdf.combined.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.680';
-PDFJS.build = '992e761';
+PDFJS.version = '1.0.682';
+PDFJS.build = '9b3c96d';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -18997,7 +18997,7 @@ var BinaryCMapReader = (function BinaryCMapReaderClosure() {
       request.overrideMimeType('text/plain; charset=x-user-defined');
     }
     request.send(null);
-    if (request.status === 0 && /^https?:/i.test(url)) {
+    if (nonBinaryRequest ? !request.responseText : !request.response) {
       error('Unable to get binary cMap at: ' + url);
     }
     if (nonBinaryRequest) {
@@ -19537,7 +19537,7 @@ var CMapFactory = (function CMapFactoryClosure() {
     var url = builtInCMapParams.url + name;
     request.open('GET', url, false);
     request.send(null);
-    if (request.status === 0 && /^https?:/i.test(url)) {
+    if (!request.responseText) {
       error('Unable to get cMap at: ' + url);
     }
     var cMap = new CMap(true);

+ 2 - 2
build/pdf.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.680';
-PDFJS.build = '992e761';
+PDFJS.version = '1.0.682';
+PDFJS.build = '9b3c96d';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it

+ 4 - 4
build/pdf.worker.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.680';
-PDFJS.build = '992e761';
+PDFJS.version = '1.0.682';
+PDFJS.build = '9b3c96d';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -13014,7 +13014,7 @@ var BinaryCMapReader = (function BinaryCMapReaderClosure() {
       request.overrideMimeType('text/plain; charset=x-user-defined');
     }
     request.send(null);
-    if (request.status === 0 && /^https?:/i.test(url)) {
+    if (nonBinaryRequest ? !request.responseText : !request.response) {
       error('Unable to get binary cMap at: ' + url);
     }
     if (nonBinaryRequest) {
@@ -13554,7 +13554,7 @@ var CMapFactory = (function CMapFactoryClosure() {
     var url = builtInCMapParams.url + name;
     request.open('GET', url, false);
     request.send(null);
-    if (request.status === 0 && /^https?:/i.test(url)) {
+    if (!request.responseText) {
       error('Unable to get cMap at: ' + url);
     }
     var cMap = new CMap(true);

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.0.680",
+  "version": "1.0.682",
   "description": "Generic build of Mozilla's PDF.js library.",
   "keywords": [
     "Mozilla",