Merge branch 'dev' into fix-custom-field-extra-inclusion

This commit is contained in:
Trenton H 2024-06-12 14:50:21 -07:00 committed by GitHub
commit 0862b80605
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -35,6 +35,8 @@ export class AppComponent implements OnInit, OnDestroy {
private permissionsService: PermissionsService, private permissionsService: PermissionsService,
private hotKeyService: HotKeyService private hotKeyService: HotKeyService
) { ) {
let anyWindow = window as any
anyWindow.pdfWorkerSrc = 'assets/js/pdf.worker.min.js'
this.settings.updateAppearanceSettings() this.settings.updateAppearanceSettings()
} }

View File

@ -364,7 +364,7 @@
</pdf-viewer> </pdf-viewer>
</div> </div>
} @else { } @else {
<object [data]="previewUrl | safeUrl" class="preview-sticky" width="100%"></object> <object [data]="previewUrl | safeUrl" type="application/pdf" class="preview-sticky" width="100%"></object>
} }
} }
@case (ContentRenderType.Text) { @case (ContentRenderType.Text) {