Browse Source

PDF.js version 1.0.469

master v1.0.469
Yury Delendik 11 years ago
parent
commit
5bb6c56475
  1. 2
      bower.json
  2. 4
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 4
      build/pdf.worker.js
  5. 2
      package.json
  6. 22
      web/compatibility.js

2
bower.json

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

4
build/pdf.combined.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.467'; PDFJS.version = '1.0.469';
PDFJS.build = '53320ce'; PDFJS.build = '780f86b';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it

4
build/pdf.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.467'; PDFJS.version = '1.0.469';
PDFJS.build = '53320ce'; PDFJS.build = '780f86b';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it

4
build/pdf.worker.js vendored

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.467'; PDFJS.version = '1.0.469';
PDFJS.build = '53320ce'; PDFJS.build = '780f86b';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it

2
package.json

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

22
web/compatibility.js

@ -481,7 +481,7 @@ if (typeof PDFJS === 'undefined') {
} }
})(); })();
// Support: IE<11, Chrome<21, Android<4.4 // Support: IE<11, Chrome<21, Android<4.4, Safari<6
(function checkSetPresenceInImageData() { (function checkSetPresenceInImageData() {
// IE < 11 will use window.CanvasPixelArray which lacks set function. // IE < 11 will use window.CanvasPixelArray which lacks set function.
if (window.CanvasPixelArray) { if (window.CanvasPixelArray) {
@ -495,21 +495,21 @@ if (typeof PDFJS === 'undefined') {
} else { } else {
// Old Chrome and Android use an inaccessible CanvasPixelArray prototype. // Old Chrome and Android use an inaccessible CanvasPixelArray prototype.
// Because we cannot feature detect it, we rely on user agent parsing. // Because we cannot feature detect it, we rely on user agent parsing.
var polyfill = false; var polyfill = false, versionMatch;
if (navigator.userAgent.indexOf('Chrom') >= 0) { if (navigator.userAgent.indexOf('Chrom') >= 0) {
var versionMatch = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./); versionMatch = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);
if (versionMatch && parseInt(versionMatch[2]) < 21) { // Chrome < 21 lacks the set function.
// Chrome < 21 lacks the set function. polyfill = versionMatch && parseInt(versionMatch[2]) < 21;
polyfill = true;
}
} else if (navigator.userAgent.indexOf('Android') >= 0) { } else if (navigator.userAgent.indexOf('Android') >= 0) {
// Android < 4.4 lacks the set function. // Android < 4.4 lacks the set function.
// Android >= 4.4 will contain Chrome in the user agent, // Android >= 4.4 will contain Chrome in the user agent,
// thus pass the Chrome check above and not reach this block. // thus pass the Chrome check above and not reach this block.
var isOldAndroid = /Android\s[0-4][^\d]/g.test(navigator.userAgent); polyfill = /Android\s[0-4][^\d]/g.test(navigator.userAgent);
if (isOldAndroid) { } else if (navigator.userAgent.indexOf('Safari') >= 0) {
polyfill = true; versionMatch = navigator.userAgent.
} match(/Version\/([0-9]+)\.([0-9]+)\.([0-9]+) Safari\//);
// Safari < 6 lacks the set function.
polyfill = versionMatch && parseInt(versionMatch[1]) < 6;
} }
if (polyfill) { if (polyfill) {

Loading…
Cancel
Save