Skip to content

Commit 5bef881

Browse files
callmemagnussusnux
authored andcommitted
fix(grant): remove JS error on Grant page
Closes #41098 Signed-off-by: Magnus Anderssen <magnus@magooweb.com>
1 parent ec5006a commit 5bef881

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)