summaryrefslogtreecommitdiffstats
path: root/apps/twofactor_backupcodes/src
diff options
context:
space:
mode:
authorJoachim Bauch <bauch@struktur.de>2019-03-22 09:50:44 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-03-22 11:01:56 +0100
commit5a786136dae6dc53e7c79929792e432a8a349f26 (patch)
tree024ed050be296fcde5c9a9f311e9524cd5cb402b /apps/twofactor_backupcodes/src
parentb1b2378758a5e855143286a9126b4b92b81a3afc (diff)
downloadnextcloud-server-5a786136dae6dc53e7c79929792e432a8a349f26.tar.gz
nextcloud-server-5a786136dae6dc53e7c79929792e432a8a349f26.zip
Use monospaced font when printing twofactor backup codes.
This helps differentiating similar characters like "I" / "1". Signed-off-by: Joachim Bauch <bauch@struktur.de> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/twofactor_backupcodes/src')
-rw-r--r--apps/twofactor_backupcodes/src/service/PrintService.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/twofactor_backupcodes/src/service/PrintService.js b/apps/twofactor_backupcodes/src/service/PrintService.js
index a01150de7d7..6ea8d4732cc 100644
--- a/apps/twofactor_backupcodes/src/service/PrintService.js
+++ b/apps/twofactor_backupcodes/src/service/PrintService.js
@@ -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();
}