Skip to content

Commit e44ab31

Browse files
committed
Update for pdfjs changes
1 parent 38cadb8 commit e44ab31

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/javascript/components/redaction/pdf-redaction.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@
220220
import 'string.prototype.repeat'
221221
import ConfirmNoRedaction from './confirm-no-redaction'
222222
223-
import PDFJSWorkerUrl from 'pdfjs-dist/build/pdf.worker.js?url'
223+
import * as pdfjs from 'pdfjs-dist/build/pdf';
224+
225+
pdfjs.GlobalWorkerOptions.workerSrc = new URL('pdfjs-dist/build/pdf.worker', import.meta.url);
224226
225227
import range from 'lodash.range'
226228

0 commit comments

Comments
 (0)