Skip to content

Commit

Permalink
Merge pull request #21 from mblink/isEvalSupported-vulnerability
Browse files Browse the repository at this point in the history
set isEvalSupported to false
  • Loading branch information
SuttonKyle authored May 7, 2024
2 parents 6bbcf04 + 46ad6e8 commit 861a850
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "document-viewer-ts",
"version": "0.7.0-legacy",
"version": "0.7.1-legacy",
"description": "PDF and MS Doc viewer written in TypeScript for React and vanilla JavaScript",
"main": "dist/lib/index.js",
"module": "dist/es2015/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const renderPDF = async (containerDiv: Element, documentUrl: string) => {
nextButton.className = 'next-button';
const prevButton = document.createElement('button');
prevButton.className = 'prev-button';
const loadingTask = getDocument(documentUrl);
const loadingTask = getDocument({url: documentUrl, isEvalSupported: false});

const zoomSelect = document.createElement('select');
zoomSelect.className = 'zoom-select';
Expand Down

0 comments on commit 861a850

Please sign in to comment.