Skip to content

Commit

Permalink
fix: use legacy
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <vitor@php.rio>
  • Loading branch information
vitormattos committed Oct 28, 2024
1 parent cc50d03 commit bf1cb83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/asyncReader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getDocument, GlobalWorkerOptions } from 'pdfjs-dist'
import pdfWorkerCode from 'pdfjs-dist/build/pdf.worker.min.mjs'
import pdfWorkerCode from 'pdfjs-dist/legacy/build/pdf.worker.min.mjs'
GlobalWorkerOptions.workerSrc = pdfWorkerCode

/**
Expand Down

0 comments on commit bf1cb83

Please sign in to comment.