maximum browser compatibility for oauth prompt

pull/10026/head
Niklas Fiekas 2021-10-24 22:41:59 +02:00
parent 8d09259f6f
commit b9a909ad4d
1 changed files with 3 additions and 2 deletions

View File

@ -14,8 +14,9 @@ object authorize {
views.html.base.layout(
title = "Authorization",
moreCss = cssTag("oauth"),
moreJs = embedJsUnsafeLoadThen(
"""setTimeout(() => {const el=document.getElementById('oauth-authorize');el.removeAttribute('disabled');el.classList.remove('disabled')}, 2000);"""
moreJs = embedJsUnsafe(
// ensure maximum browser compatibility
"""setTimeout(function(){var el=document.getElementById('oauth-authorize');el.removeAttribute('disabled');el.classList.remove('disabled');}, 2000);"""
)
) {
main(cls := "oauth box box-pad")(