Przeglądaj źródła

PDF.js version 1.1.394

Pdf Bot 9 lat temu
rodzic
commit
c56f288f1d
5 zmienionych plików z 20 dodań i 8 usunięć
  1. 1 1
      bower.json
  2. 6 2
      build/pdf.combined.js
  3. 6 2
      build/pdf.js
  4. 6 2
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.1.392",
+  "version": "1.1.394",
   "main": [
     "build/pdf.js",
     "build/pdf.worker.js"

+ 6 - 2
build/pdf.combined.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.1.392';
-PDFJS.build = 'c56dc9a';
+PDFJS.version = '1.1.394';
+PDFJS.build = 'ede5235';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -1508,6 +1508,10 @@ function MessageHandler(name, comObj) {
             data: result
           });
         }, function (reason) {
+          if (reason instanceof Error) {
+            // Serialize error to avoid "DataCloneError"
+            reason = reason + '';
+          }
           comObj.postMessage({
             isReply: true,
             callbackId: data.callbackId,

+ 6 - 2
build/pdf.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.1.392';
-PDFJS.build = 'c56dc9a';
+PDFJS.version = '1.1.394';
+PDFJS.build = 'ede5235';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -1508,6 +1508,10 @@ function MessageHandler(name, comObj) {
             data: result
           });
         }, function (reason) {
+          if (reason instanceof Error) {
+            // Serialize error to avoid "DataCloneError"
+            reason = reason + '';
+          }
           comObj.postMessage({
             isReply: true,
             callbackId: data.callbackId,

+ 6 - 2
build/pdf.worker.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.1.392';
-PDFJS.build = 'c56dc9a';
+PDFJS.version = '1.1.394';
+PDFJS.build = 'ede5235';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -1508,6 +1508,10 @@ function MessageHandler(name, comObj) {
             data: result
           });
         }, function (reason) {
+          if (reason instanceof Error) {
+            // Serialize error to avoid "DataCloneError"
+            reason = reason + '';
+          }
           comObj.postMessage({
             isReply: true,
             callbackId: data.callbackId,

+ 1 - 1
package.json

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