diff --git a/4chan_x.coffee b/4chan_x.coffee index eadd99d43..1d498b524 100644 --- a/4chan_x.coffee +++ b/4chan_x.coffee @@ -419,7 +419,7 @@ iframeLoad = -> span.textContent = error span.className = 'error' 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()' else remove(qr) diff --git a/4chan_x.js b/4chan_x.js index 5fdcbc0ea..1b3722730 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -457,7 +457,8 @@ span = tag('span'); span.textContent = 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 { remove(qr); return (window.location = 'javascript:Recaptcha.reload()');