Skip to content

Commit

Permalink
updated pdfjs version
Browse files Browse the repository at this point in the history
  • Loading branch information
amit-s19 committed May 21, 2024
1 parent adf0de3 commit c5a8fad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "my-app",
"version": "0.1.57",
"version": "0.1.58",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down Expand Up @@ -44,7 +44,7 @@
"next": "13.5.2",
"next-pwa": "^5.6.0",
"offline-sync-handler-test": "^0.1.82",
"pdfjs-dist": "^3.4.120",
"pdfjs-dist": "3.11.174",
"postcss": "8.4.25",
"react": "18.2.0",
"react-burger-menu": "^3.0.9",
Expand Down
4 changes: 2 additions & 2 deletions src/components/CitizenForm/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ const CitizenForm = (props) => {


<div className={styles.pdfContainer}>
<Worker workerUrl="https://unpkg.com/pdfjs-dist@3.4.120/build/pdf.worker.min.js">
<Worker workerUrl="https://unpkg.com/pdfjs-dist@3.11.174/build/pdf.worker.min.js">
{rorPdfs?.map(el =>
<div className={styles.pdfItem}>
<div className={styles.pdfView} onClick={() => handlePdfSelection(el?.base64File)}>
Expand All @@ -778,7 +778,7 @@ const CitizenForm = (props) => {
</div >

{pdfModal && <CommonModal sx={{ height: '100vh', maxWidth: '100vw', margin: 0, padding: 0 }}>
<Worker workerUrl="https://unpkg.com/pdfjs-dist@3.4.120/build/pdf.worker.min.js">
<Worker workerUrl="https://unpkg.com/pdfjs-dist@3.11.174/build/pdf.worker.min.js">
<Viewer defaultLayoutPlugin={[defaultLayoutPluginInstance]} fileUrl={currentPdf} />
</Worker>
<div className={styles.goBackBtn} onClick={() => { setCurrentPdf(null); showPdfModal(false); }}>Go Back</div>
Expand Down

0 comments on commit c5a8fad

Please sign in to comment.