1
0
mirror of https://github.com/bitwarden/web synced 2025-12-06 00:03:28 +00: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

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