summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2023-10-27 13:43:35 +0200
committerGitHub <noreply@github.com>2023-10-27 13:43:35 +0200
commit443d15bac3bd4f2ab200eb0e5580e1f390f995eb (patch)
tree9f029739676c5271c73872f2c6d35ce2b1966d54
parentc25ed7cadc248d62b8b598fbc9b612be3c752669 (diff)
parent61a0b93a67d832be08c26fd8a11f22939805b30d (diff)
downloadnextcloud-server-443d15bac3bd4f2ab200eb0e5580e1f390f995eb.tar.gz
nextcloud-server-443d15bac3bd4f2ab200eb0e5580e1f390f995eb.zip
Merge pull request #41138 from nextcloud/backport/41117/stable27
[stable27] fix(login): Fix JS error on login grant page
-rw-r--r--core/js/login/grant.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/login/grant.js b/core/js/login/grant.js
index c458bbbab84..c4d49505059 100644
--- a/core/js/login/grant.js
+++ b/core/js/login/grant.js
@@ -3,7 +3,7 @@ document.querySelector('form').addEventListener('submit', function(e) {
if (wrapper === null) {
return
}
- wrapper.getElementsByClassName('icon-confirm-white').forEach(function(el) {
+ Array.from(wrapper.getElementsByClassName('icon-confirm-white')).forEach(function(el) {
el.classList.remove('icon-confirm-white')
el.classList.add(OCA.Theming && OCA.Theming.inverted ? 'icon-loading-small' : 'icon-loading-small-dark')
el.disabled = true