From c3f4c6c03ba790c2beb1b829047a6c8071bb095a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kh=C3=A1nh=20Ho=C3=A0ng?= Date: Wed, 13 Jan 2021 00:33:56 +0700 Subject: [PATCH] Fix #759 for Print Code button in Two-step Login (#760) --- src/app/settings/two-factor-recovery.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {