Skip to content

Commit

Permalink
Update workerSrc to min.js file
Browse files Browse the repository at this point in the history
  • Loading branch information
cyntler committed Oct 29, 2022
1 parent a1d08b7 commit 3c8a1bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/pdf/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import PDFPages from "./components/pages/PDFPages";
import PDFControls from "./components/PDFControls";
import { PDFProvider } from "./state";

pdfjs.GlobalWorkerOptions.workerSrc = `https://cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfjs.version}/pdf.worker.js`;
pdfjs.GlobalWorkerOptions.workerSrc = `https://unpkg.com/pdfjs-dist@${pdfjs.version}/legacy/build/pdf.worker.min.js`;

const PDFRenderer: DocRenderer = ({ mainState }) => {
return (
Expand Down

0 comments on commit 3c8a1bc

Please sign in to comment.