From e44ab314699ca7c8342ebef9d9d70259caff48f8 Mon Sep 17 00:00:00 2001 From: Suchandra Thapa Date: Mon, 18 Nov 2024 12:54:55 -1000 Subject: [PATCH] Update for pdfjs changes --- frontend/javascript/components/redaction/pdf-redaction.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/javascript/components/redaction/pdf-redaction.vue b/frontend/javascript/components/redaction/pdf-redaction.vue index 05f78b7b7..338573db3 100644 --- a/frontend/javascript/components/redaction/pdf-redaction.vue +++ b/frontend/javascript/components/redaction/pdf-redaction.vue @@ -220,7 +220,9 @@ import 'string.prototype.repeat' import ConfirmNoRedaction from './confirm-no-redaction' -import PDFJSWorkerUrl from 'pdfjs-dist/build/pdf.worker.js?url' +import * as pdfjs from 'pdfjs-dist/build/pdf'; + +pdfjs.GlobalWorkerOptions.workerSrc = new URL('pdfjs-dist/build/pdf.worker', import.meta.url); import range from 'lodash.range'