From f9cc3abe855abde3e47f731f14391ecc1e4b8209 Mon Sep 17 00:00:00 2001 From: tiger2005 <41613797+tiger2005@users.noreply.github.com> Date: Fri, 6 May 2022 01:00:37 +0800 Subject: [PATCH] Bug fix --- scripts/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/main.js b/scripts/main.js index 50a1852..0aa5017 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -143,6 +143,7 @@ if(keyCounter.hasOwnProperty(i)) keyCounter[i] = 0; currMaximum = 0; + hitTotal = 0; if(keyHeatmap !== "none") $(`.buttonDiv`).each(function(){ $(this).css("background", getColorFromPercent(0, keyHeatmap));