mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 23:31:13 -05:00
don't try to load scoreboard if not on scoreboard page
This commit is contained in:
@ -11,6 +11,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(() => {
|
$(document).ready(() => {
|
||||||
|
if ($('.scoreboard-container').length === 0) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
$(window.location.hash).tab('show');
|
$(window.location.hash).tab('show');
|
||||||
$(`${window.location.hash}_nav`).addClass('active');
|
$(`${window.location.hash}_nav`).addClass('active');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user