mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-06 14:55:07 +01:00
Fix: delay iframe DOM removal for print in FF
This commit is contained in:
parent
245e52a4eb
commit
8f969ecab5
1 changed files with 1 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue