summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorMagnus Anderssen <magnus@magooweb.com>2023-10-25 17:20:10 +0200
committerDaniel <mail@danielkesselberg.de>2023-10-26 12:19:07 +0200
commit57dae366ca48a6fbc660300e4a9355ffa6fcb4ff (patch)
tree7adfbdf7079eaaf0525af2bc1862ade41fb3d18c /core/js
parent4c8232f04ce744c8eca3bc96b2fca5b3f88621fa (diff)
downloadnextcloud-server-57dae366ca48a6fbc660300e4a9355ffa6fcb4ff.tar.gz
nextcloud-server-57dae366ca48a6fbc660300e4a9355ffa6fcb4ff.zip
fix(grant): remove JS error on Grant page
Closes #41098 Signed-off-by: Magnus Anderssen <magnus@magooweb.com>
Diffstat (limited to 'core/js')
-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