From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 31 Oct 2025 00:24:44 +0000 (-0700) Subject: Fix: delay iframe DOM removal for print in FF X-Git-Tag: v2.19.4~18^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f969ecab54f70df408fd07e12a661d488c8622e;p=thirdparty%2Fpaperless-ngx.git Fix: delay iframe DOM removal for print in FF --- 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 3c692e4961..9c0c845929 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) }