diff options
author | Vincent Ambo <mail@tazj.in> | 2023-06-02T12·56+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2023-06-06T11·43+0000 |
commit | 138f1ca1b90a1b0a3d1c703246c8eb8f9ff8b31a (patch) | |
tree | e91a08dcaeeae8fd1d9bb7d4110d3b2e7a277c93 /corp/rih/src/home.html | |
parent | 6f0ddbac06a9a72908b8b0b955cd743d3ae82378 (diff) |
feat(corp/rih): wire up captcha solving callback r/6234
This turned out a lot nicer than I expected it to be. Change-Id: I427670644eba789ea2037423fa9af8e632b19b34 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8695 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'corp/rih/src/home.html')
-rw-r--r-- | corp/rih/src/home.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/corp/rih/src/home.html b/corp/rih/src/home.html index 95a77877d317..7f1ff5f332a2 100644 --- a/corp/rih/src/home.html +++ b/corp/rih/src/home.html @@ -1,12 +1,13 @@ html! { <main> <script> - {r#"function captchaOnload(sitekey) { + {r#"function captchaOnload(sitekey, callback) { if (window.smartCaptcha) { const container = document.getElementById('captcha-container'); const widgetId = window.smartCaptcha.render(container, { sitekey: sitekey, hl: 'en', + callback: callback, }); } }"#} |