Skip to content

Commit

Permalink
included web compatibility for ie support
Browse files Browse the repository at this point in the history
  • Loading branch information
erikras committed Jun 15, 2016
1 parent 05c6e87 commit 2f9ae02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/Pdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2f9ae02

Please sign in to comment.