Skip to content

Commit

Permalink
Merge pull request #22 from w3bdesign/development
Browse files Browse the repository at this point in the history
Update PDFViewer.component.tsx
  • Loading branch information
w3bdesign authored May 30, 2024
2 parents 4fb05f4 + edf6e6c commit f5d882f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/CV/PDFViewer.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { Document, Page, pdfjs } from "react-pdf";
import "react-pdf/dist/esm/Page/AnnotationLayer.css";
import "react-pdf/dist/esm/Page/TextLayer.css";

pdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/build/pdf.worker.min.js`;
//pdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/build/pdf.worker.min.js`;
pdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/build/pdf.min.mjs`;

type PdfViewerProps = { file: string };

Expand Down

0 comments on commit f5d882f

Please sign in to comment.