Skip to content

Commit bdd21c6

Browse files
authored
Merge pull request #41141 from nextcloud/backport/41117/stable26
[stable26] fix(login): Fix JS error on login grant page
2 parents 33f4811 + 5bef881 commit bdd21c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/js/login/grant.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ document.querySelector('form').addEventListener('submit', function(e) {
33
if (wrapper === null) {
44
return
55
}
6-
wrapper.getElementsByClassName('icon-confirm-white').forEach(function(el) {
6+
Array.from(wrapper.getElementsByClassName('icon-confirm-white')).forEach(function(el) {
77
el.classList.remove('icon-confirm-white')
88
el.classList.add(OCA.Theming && OCA.Theming.inverted ? 'icon-loading-small' : 'icon-loading-small-dark')
99
el.disabled = true

0 commit comments

Comments
 (0)