Fix #759 for Print Code button in Two-step Login (#760)

This commit is contained in:
Khánh Hoàng 2021-01-13 00:33:56 +07:00 committed by GitHub
parent e8b72477c9
commit c3f4c6c03b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -30,8 +30,8 @@ export class TwoFactorRecoveryComponent {
'<code style="font-family: Menlo, Monaco, Consolas, \'Courier New\', monospace;">' +
this.code + '</code></div>' +
'<p style="text-align: center;">' + new Date() + '</p>');
w.onafterprint = () => w.close();
w.print();
w.close();
}
private formatString(s: string) {