1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-03-01 03:31:15 +01:00

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

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) {