Skip to content

Commit

Permalink
Update for pdfjs changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sthapa committed Nov 18, 2024
1 parent 38cadb8 commit e44ab31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/javascript/components/redaction/pdf-redaction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Check failure on line 223 in frontend/javascript/components/redaction/pdf-redaction.vue

View workflow job for this annotation

GitHub Actions / lint

Delete `;`
pdfjs.GlobalWorkerOptions.workerSrc = new URL('pdfjs-dist/build/pdf.worker', import.meta.url);

Check failure on line 225 in frontend/javascript/components/redaction/pdf-redaction.vue

View workflow job for this annotation

GitHub Actions / lint

Replace `'pdfjs-dist/build/pdf.worker',·import.meta.url);` with `⏎··'pdfjs-dist/build/pdf.worker',⏎··import.meta.url⏎)`
import range from 'lodash.range'
Expand Down

0 comments on commit e44ab31

Please sign in to comment.