Merge pull request #14802 from nextcloud/print-backupcodes-monospace

Use monospaced font when printing twofactor backup codes.
This commit is contained in:
Roeland Jago Douma 2019-03-22 12:58:38 +01:00 committed by GitHub
commit eb783d0eb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
export function print (data) {
const newTab = window.open('', t('twofactor_backupcodes', 'Nextcloud backup codes'));
newTab.document.write('<h1>' + t('twofactor_backupcodes', 'Nextcloud backup codes') + '</h1>');
newTab.document.write(data);
newTab.document.write('<pre>' + data + '</pre>');
newTab.print();
newTab.close();
}