Skip to content

Commit 8f4ba15

Browse files
authored
Merge pull request #7064 from LibreSign/backport/7063/stable33
[stable33] fix: use legacy pdfjs worker for browser compat
2 parents 9f27109 + f874828 commit 8f4ba15

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@codemirror/state": "^6.4.1",
3131
"@codemirror/view": "^6.36.2",
3232
"@fontsource/dancing-script": "^5.2.8",
33-
"@libresign/pdf-elements": "^1.1.0",
33+
"@libresign/pdf-elements": "^1.1.1",
3434
"@marionebl/option": "^1.0.8",
3535
"@mdi/js": "^7.4.47",
3636
"@mdi/svg": "^7.4.47",

src/helpers/pdfWorker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const ensurePdfWorker = (): void => {
1111
return
1212
}
1313
configured = true
14-
import('pdfjs-dist/build/pdf.worker.min.mjs?url')
14+
import('pdfjs-dist/legacy/build/pdf.worker.min.mjs?url')
1515
.then((mod) => {
1616
setWorkerPath(mod.default as string)
1717
})

0 commit comments

Comments
 (0)