Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

set isEvalSupported to false #21

Merged
merged 2 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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