From 2f9ae0209bd95e27a79a9c8b4781d56548821921 Mon Sep 17 00:00:00 2001 From: Erik Rasmussen Date: Wed, 15 Jun 2016 13:01:59 -0400 Subject: [PATCH] included web compatibility for ie support --- package.json | 4 ++-- src/Pdf.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8ebd3e6..1de561b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-pdfjs", - "version": "1.0.6", + "version": "1.0.7", "description": "A React component to wrap PDF.js", "main": "./lib/index.js", "jsnext:main": "./src/index.js", @@ -30,7 +30,7 @@ }, "homepage": "https://github.com/erikras/react-pdfjs", "dependencies": { - "pdfjs-dist": "1.3.78" + "pdfjs-dist": "^1.5.296" }, "devDependencies": { "babel": "^5.8.23", diff --git a/src/Pdf.js b/src/Pdf.js index dbb487e..632a929 100755 --- a/src/Pdf.js +++ b/src/Pdf.js @@ -2,6 +2,7 @@ import React, {Component, PropTypes} from 'react'; if (typeof window !== 'undefined') { require('pdfjs-dist/build/pdf.combined'); + require('pdfjs-dist/web/compatibility'); } class Pdf extends Component {