Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit 58e3a01

Browse files
author
Billy Clark
committed
pr feedback
1 parent 9d62cee commit 58e3a01

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

themes/material/mfa/new-backup-codes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ function disableUnsupportedFeatures() {
1919
function disablePrint() {
2020
document.querySelector('button#print').disabled = true;
2121
document.querySelector('button#print').classList.add('not-allowed');
22-
document.querySelector('button#print').title = '<?= $this->t('{material:mfa:unsupported}') ?>'
22+
document.querySelector('button#print').title = '<?= json_encode($this->t('{material:mfa:unsupported}')) ?>';
2323
}
2424

2525
function disableDownload() {
2626
document.querySelector('a[download]').href = '';
2727
document.querySelector('a[download]').classList.add('mdl-button--disabled', 'not-allowed');
28-
document.querySelector('a[download]').title = '<?= $this->t('{material:mfa:unsupported}') ?>'
28+
document.querySelector('a[download]').title = '<?= json_encode($this->t('{material:mfa:unsupported}')) ?>';
2929
}
3030
</script>
3131
</head>

0 commit comments

Comments
 (0)