From b4c08243805f41244b7d86ae5531272c7d388cd8 Mon Sep 17 00:00:00 2001 From: ysandler Date: Sat, 9 Sep 2017 14:52:27 -0500 Subject: [PATCH] fix: clearing attepted addresses on beginRound() --- app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.js b/app.js index 7bbf87b..11f1977 100644 --- a/app.js +++ b/app.js @@ -154,6 +154,7 @@ function compareIpAddress(value){ function beginRound(){ document.getElementById('entry_table').innerHTML = ""; + ipAttempts = []; let entryArray = createEntryArray(); let htmlArray = createEntryHTMLArray(entryArray); let entryHTMLString = concatEntryHTMLArray(htmlArray); @@ -163,6 +164,7 @@ function beginRound(){ renderEntries(entryHTMLString); assignClickEvent(entryElements); renderSuccessPrecentage(score * 100/winScore); + renderAttempts(); console.log(targetIpAddress);