فهرست منبع

PDF.js version 1.0.117

Yury Delendik 10 سال پیش
والد
کامیت
b99e3cddf5
6فایلهای تغییر یافته به همراه24 افزوده شده و 17 حذف شده
  1. 1 1
      bower.json
  2. 2 2
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 2 2
      build/pdf.worker.js
  5. 1 1
      package.json
  6. 16 9
      web/compatibility.js

+ 1 - 1
bower.json

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

+ 2 - 2
build/pdf.combined.js

@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.114';
-PDFJS.build = '8e517b6';
+PDFJS.version = '1.0.117';
+PDFJS.build = '6a800eb';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it

+ 2 - 2
build/pdf.js

@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.114';
-PDFJS.build = '8e517b6';
+PDFJS.version = '1.0.117';
+PDFJS.build = '6a800eb';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it

+ 2 - 2
build/pdf.worker.js

@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.114';
-PDFJS.build = '8e517b6';
+PDFJS.version = '1.0.117';
+PDFJS.build = '6a800eb';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it

+ 1 - 1
package.json

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

+ 16 - 9
web/compatibility.js

@@ -547,13 +547,20 @@ if (typeof PDFJS === 'undefined') {
       return;
     }
   } catch (e) { }
-  window.localStorage = {
-    data: Object.create(null),
-    getItem: function (key) {
-      return this.data[key];
-    },
-    setItem: function (key, value) {
-      this.data[key] = value;
-    }
-  };
+  // When the generic viewer is used in Firefox the following code will fail
+  // when the preference 'network.cookie.lifetimePolicy' is set to 1,
+  // see Mozilla bug 365772.
+  try {
+    window.localStorage = {
+      data: Object.create(null),
+      getItem: function (key) {
+        return this.data[key];
+      },
+      setItem: function (key, value) {
+        this.data[key] = value;
+      }
+    };
+  } catch (e) {
+    console.log('Unable to create polyfill for localStorage');
+  }
 })();