]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: delay iframe DOM removal for print in FF
authorshamoon <4887959+shamoon@users.noreply.github.com>
Fri, 31 Oct 2025 00:24:44 +0000 (17:24 -0700)
committershamoon <4887959+shamoon@users.noreply.github.com>
Fri, 31 Oct 2025 00:24:44 +0000 (17:24 -0700)
src-ui/src/app/components/document-detail/document-detail.component.ts

index 3c692e4961bbcd593ae7f17e2fcaf0e0c8ad96b5..9c0c845929d85e4362c33754eeb00901c7289d52 100644 (file)
@@ -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)
               }