From 3b532cf1f796db036412237697023d635e07f50a Mon Sep 17 00:00:00 2001 From: RaidMax Date: Tue, 1 Feb 2022 09:09:29 -0600 Subject: [PATCH] don't try to load scoreboard if not on scoreboard page --- WebfrontCore/wwwroot/js/scoreboard.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WebfrontCore/wwwroot/js/scoreboard.js b/WebfrontCore/wwwroot/js/scoreboard.js index 478057fe..e8b57278 100644 --- a/WebfrontCore/wwwroot/js/scoreboard.js +++ b/WebfrontCore/wwwroot/js/scoreboard.js @@ -11,6 +11,10 @@ } $(document).ready(() => { + if ($('.scoreboard-container').length === 0) { + return 0; + } + $(window.location.hash).tab('show'); $(`${window.location.hash}_nav`).addClass('active');