Skip to content

Commit

Permalink
use minimized pdf worker
Browse files Browse the repository at this point in the history
  • Loading branch information
codyzu committed Jul 26, 2023
1 parent 756ad5e commit 2cc66b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import {UserContext, type UserDoc} from '../components/UserProvider';
import Loading from '../components/Loading';
import Pdf from '../components/pdf/Pdf';

const src = new URL('pdfjs-dist/build/pdf.worker.js', import.meta.url);
const src = new URL('pdfjs-dist/build/pdf.worker.min.js', import.meta.url);
pdfjs.GlobalWorkerOptions.workerSrc = src.toString();

type UploadState =
Expand Down

0 comments on commit 2cc66b5

Please sign in to comment.