diff --git a/src/app/settings/two-factor-recovery.component.ts b/src/app/settings/two-factor-recovery.component.ts index 875cb1fd48..de18a68709 100644 --- a/src/app/settings/two-factor-recovery.component.ts +++ b/src/app/settings/two-factor-recovery.component.ts @@ -30,8 +30,8 @@ export class TwoFactorRecoveryComponent { '' + this.code + '' + '

' + new Date() + '

'); + w.onafterprint = () => w.close(); w.print(); - w.close(); } private formatString(s: string) {