Fix selector used to construct list of recovery codes (#31475)
Closes #31260 Signed-off-by: Jon Koops <jonkoops@gmail.com>
This commit is contained in:
parent
1806581e0c
commit
d16e1ac106
1 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@
|
|||
/* copy recovery codes */
|
||||
function copyRecoveryCodes() {
|
||||
var tmpTextarea = document.createElement("textarea");
|
||||
var codes = document.getElementById("kc-recovery-codes-list").getElementsByTagName("li");
|
||||
var codes = document.querySelectorAll("#kc-recovery-codes-list li");
|
||||
for (i = 0; i < codes.length; i++) {
|
||||
tmpTextarea.value = tmpTextarea.value + codes[i].innerText + "\n";
|
||||
}
|
||||
|
@ -106,7 +106,7 @@
|
|||
}
|
||||
|
||||
function parseRecoveryCodeList() {
|
||||
var recoveryCodes = document.querySelectorAll(".kc-recovery-codes-list li");
|
||||
var recoveryCodes = document.querySelectorAll("#kc-recovery-codes-list li");
|
||||
var recoveryCodeList = "";
|
||||
|
||||
for (var i = 0; i < recoveryCodes.length; i++) {
|
||||
|
|
Loading…
Reference in a new issue