mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-11-03 03:16:10 -06:00
Fix: delay iframe DOM removal for print in FF
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user