Skip to content

Commit

Permalink
format frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
josStorer committed Aug 23, 2024
1 parent 3aec1f4 commit beca437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/utils/web-file-operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export function webOpenOpenFileDialog(
if (fnStartLoading && typeof fnStartLoading === 'function')
fnStartLoading()
if (!GlobalWorkerOptions.workerSrc && file.type === 'application/pdf')
// @ts-ignore
GlobalWorkerOptions.workerSrc = await import(
// @ts-ignore
'pdfjs-dist/build/pdf.worker.min.mjs'
)
if (file.type === 'text/plain') {
Expand Down

0 comments on commit beca437

Please sign in to comment.