Skip to content

Commit

Permalink
set isEvalSupported to false
Browse files Browse the repository at this point in the history
  • Loading branch information
SuttonKyle committed May 7, 2024
1 parent 6bbcf04 commit 6d484f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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
4 changes: 2 additions & 2 deletions src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const scaleTextLayer = async (
await renderTextLayer({
textContentSource: textContent,
container: textLayerFragment,
viewport: vs
viewport: vs,
}).promise;
textLayerDiv.appendChild(textLayerFragment);
};
Expand Down 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 6d484f4

Please sign in to comment.