Created
March 10, 2021 13:01
-
-
Save EvanGertis/463aabe806ba3622f8c9c3d9e27f3601 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function processResponse(){ | |
if(asyncRequest.readyState==4 && asyncRequest.status==200 && asyncRequest.responseXML){ | |
var emails = asyncRequest.responseXML.getElementsByTagName("email"); | |
var removeWarning = false; | |
for(var i=0; i < emails.length;i++){ | |
removeWarning = true; | |
if(email.value==emails[i].textContent){ | |
addBlackListEmailWarning(email, " |black listed|"); | |
removeWarning = false; | |
} | |
} | |
if(removeWarning && document.getElementById("email-blacklist-warning")){ | |
document.getElementById("email-blacklist-warning").remove(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment