Fix (dev): respect base path for pdf worker js (#12704)

This commit is contained in:
shamoon
2026-05-04 09:07:05 -07:00
committed by GitHub
parent ca4444c9a3
commit e75860dcd1
3 changed files with 39 additions and 3 deletions
+4 -1
View File
@@ -41,7 +41,10 @@ export class AppComponent implements OnInit, OnDestroy {
constructor() {
let anyWindow = window as any
anyWindow.pdfWorkerSrc = 'assets/js/pdf.worker.min.mjs'
anyWindow.pdfWorkerSrc = new URL(
'assets/js/pdf.worker.min.mjs',
document.baseURI
).toString()
this.settings.updateAppearanceSettings()
}