mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-11-11 17:16:43 -05:00
Fix: delay iframe DOM removal for print in FF
This commit is contained in:
parent
245e52a4eb
commit
8f969ecab5
@ -1455,9 +1455,7 @@ export class DocumentDetailComponent
|
|||||||
// FF throws cross-origin error on onafterprint
|
// FF throws cross-origin error on onafterprint
|
||||||
const isCrossOriginAfterPrintError =
|
const isCrossOriginAfterPrintError =
|
||||||
err instanceof DOMException &&
|
err instanceof DOMException &&
|
||||||
(err.name === 'SecurityError' ||
|
err.message.includes('onafterprint')
|
||||||
err.message.includes('onafterprint')) &&
|
|
||||||
err.message.includes('cross-origin')
|
|
||||||
if (!isCrossOriginAfterPrintError) {
|
if (!isCrossOriginAfterPrintError) {
|
||||||
this.toastService.showError($localize`Print failed.`, err)
|
this.toastService.showError($localize`Print failed.`, err)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user