Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix: delay iframe DOM removal for print in FF

shamoon8f969ecab54f
diff --git a/src-ui/src/app/components/document-detail/document-detail.component.ts b/src-ui/src/app/components/document-detail/document-detail.component.ts
index 3c692e496..9c0c84592 100644
--- a/src-ui/src/app/components/document-detail/document-detail.component.ts
+++ b/src-ui/src/app/components/document-detail/document-detail.component.ts
@@ -1455,9 +1455,7 @@ export class DocumentDetailComponent
// FF throws cross-origin error on onafterprint
const isCrossOriginAfterPrintError =
err instanceof DOMException &&
- (err.name === 'SecurityError' ||
- err.message.includes('onafterprint')) &&
- err.message.includes('cross-origin')
+ err.message.includes('onafterprint')
if (!isCrossOriginAfterPrintError) {
this.toastService.showError($localize`Print failed.`, err)
}