diff --git a/captcheck.js b/captcheck.js index cd56481..544c66a 100644 --- a/captcheck.js +++ b/captcheck.js @@ -43,6 +43,10 @@ window.onload = function () { if (this.readyState == 4) { var status = this.status; var json = this.responseText; + /* Prevent rare bug where two CAPTCHAs appear in one container */ + if (container.innerHTML.trim() != "") { + return; + } /* Create captcha div */ var captcha = document.createElement("div"); captcha.setAttribute("class", "captcheck_box");