= should be ==
but I actually just changed it to `is`
This commit is contained in:
parent
9637237578
commit
d756506656
@ -419,7 +419,7 @@ iframeLoad = ->
|
|||||||
span.textContent = error
|
span.textContent = error
|
||||||
span.className = 'error'
|
span.className = 'error'
|
||||||
qr.appendChild(span)
|
qr.appendChild(span)
|
||||||
if error = 'You seem to have mistyped the verification'
|
if error is 'You seem to have mistyped the verification'
|
||||||
window.location = 'javascript:Recaptcha.reload()'
|
window.location = 'javascript:Recaptcha.reload()'
|
||||||
else
|
else
|
||||||
remove(qr)
|
remove(qr)
|
||||||
|
|||||||
@ -457,7 +457,8 @@
|
|||||||
span = tag('span');
|
span = tag('span');
|
||||||
span.textContent = error;
|
span.textContent = error;
|
||||||
span.className = 'error';
|
span.className = 'error';
|
||||||
return qr.appendChild(span);
|
qr.appendChild(span);
|
||||||
|
return error === 'You seem to have mistyped the verification' ? (window.location = 'javascript:Recaptcha.reload()') : null;
|
||||||
} else {
|
} else {
|
||||||
remove(qr);
|
remove(qr);
|
||||||
return (window.location = 'javascript:Recaptcha.reload()');
|
return (window.location = 'javascript:Recaptcha.reload()');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user