Skip to content

Commit

Permalink
fix: recaptcha race condition (#1176)
Browse files Browse the repository at this point in the history
  • Loading branch information
WeidiDeng committed Dec 8, 2020
1 parent c746c19 commit ac3673e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/views/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ export default {
mounted () {
if (!recaptcha) return
window.grecaptcha.render('recaptcha', {
sitekey: recaptchaKey
window.grecaptcha.ready(function () {
window.grecaptcha.render('recaptcha', {
sitekey: recaptchaKey
})
})
},
methods: {
Expand Down

0 comments on commit ac3673e

Please sign in to comment.