From edf8e03b046f5e6538eaa512d23ce2e2bef58f8f Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sun, 27 Feb 2022 21:35:16 -0600 Subject: [PATCH] don't refresh scoreboard on every page. though I fixed this already... --- WebfrontCore/wwwroot/js/scoreboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WebfrontCore/wwwroot/js/scoreboard.js b/WebfrontCore/wwwroot/js/scoreboard.js index e8b57278e..e25ffbf81 100644 --- a/WebfrontCore/wwwroot/js/scoreboard.js +++ b/WebfrontCore/wwwroot/js/scoreboard.js @@ -15,6 +15,8 @@ $(document).ready(() => { return 0; } + setInterval(refreshScoreboard, 5000); + $(window.location.hash).tab('show'); $(`${window.location.hash}_nav`).addClass('active'); @@ -32,5 +34,3 @@ function setupDataSorting() { refreshScoreboard(); }) } - -setInterval(refreshScoreboard, 5000);