Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MacTheZazou committed Mar 10, 2017
1 parent 7dda2b0 commit 25d0f6c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions invisible-recaptcha.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
<script>

function handleResponse(token) {
if(document.querySelector('invisible-recaptcha')){
document.querySelector('invisible-recaptcha')._handleResponse(token);
}else {this.dispatchEvent(new Event('verificationFinished'));}
this.dispatchEvent(new Event('verificationFinished'));
}

function recaptchaLoaded() {
document.querySelector('invisible-recaptcha')._recaptchaLoaded();
console.log(12);
}
Polymer({
is: 'invisible-recaptcha',
Expand Down Expand Up @@ -147,6 +147,7 @@
grecaptcha.render(this.shadowHelper, renderOption);
},
_handleResponse: function() {
console.log(13);
var token = grecaptcha.getResponse();
this.lastResponse = token;
this.fire('verification-finished', {'token': token});
Expand Down

0 comments on commit 25d0f6c

Please sign in to comment.