diff --git a/package.json b/package.json index cf187e6..f4b0ce3 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/base.ts b/src/base.ts index ec65820..51ef4aa 100644 --- a/src/base.ts +++ b/src/base.ts @@ -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';