also avoid classList for browser compatibility

pull/10026/head
Niklas Fiekas 2021-10-24 22:48:29 +02:00
parent b9a909ad4d
commit e6002e94e9
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ object authorize {
moreCss = cssTag("oauth"),
moreJs = embedJsUnsafe(
// ensure maximum browser compatibility
"""setTimeout(function(){var el=document.getElementById('oauth-authorize');el.removeAttribute('disabled');el.classList.remove('disabled');}, 2000);"""
"""setTimeout(function(){var el=document.getElementById('oauth-authorize');el.removeAttribute('disabled');el.setAttribute('class','button')}, 2000);"""
)
) {
main(cls := "oauth box box-pad")(