We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38cadb8 commit e44ab31Copy full SHA for e44ab31
frontend/javascript/components/redaction/pdf-redaction.vue
@@ -220,7 +220,9 @@
220
import 'string.prototype.repeat'
221
import ConfirmNoRedaction from './confirm-no-redaction'
222
223
-import PDFJSWorkerUrl from 'pdfjs-dist/build/pdf.worker.js?url'
+import * as pdfjs from 'pdfjs-dist/build/pdf';
224
+
225
+pdfjs.GlobalWorkerOptions.workerSrc = new URL('pdfjs-dist/build/pdf.worker', import.meta.url);
226
227
import range from 'lodash.range'
228
0 commit comments