1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-09 23:00:57 -05:00

don't try to load scoreboard if not on scoreboard page

This commit is contained in:
RaidMax
2022-02-01 09:09:29 -06:00
parent eaab28a2bb
commit 42e884bd4d

View File

@ -11,6 +11,10 @@
}
$(document).ready(() => {
if ($('.scoreboard-container').length === 0) {
return 0;
}
$(window.location.hash).tab('show');
$(`${window.location.hash}_nav`).addClass('active');