Skip to content

Commit

Permalink
Merge pull request #2 from modos189/fix2
Browse files Browse the repository at this point in the history
  • Loading branch information
modos189 authored Jul 16, 2022
2 parents 814321d + de913ae commit 8db6cc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/code/sidebar.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
window.setupSidebar = function() {
window.setupStyles();
setupIcons();
setupPlayerStat();
window.setupPlayerStat();
setupSidebarToggle();
setupLargeImagePreview();
setupAddons();
Expand Down Expand Up @@ -39,7 +39,7 @@ function setupIcons () {
// renders player details into the website. Since the player info is
// included as inline script in the original site, the data is static
// and cannot be updated.
function setupPlayerStat () {
window.setupPlayerStat = function () {
// stock site updated to supply the actual player level, AP requirements and XM capacity values
var level = PLAYER.verified_level;
PLAYER.level = level; // for historical reasons IITC expects PLAYER.level to contain the current player level
Expand Down Expand Up @@ -81,7 +81,7 @@ function setupPlayerStat () {
+ '</div>'
+ '</h2>'
);
}
};

function setupSidebarToggle () {
$('#sidebartoggle').on('click', function() {
Expand Down

0 comments on commit 8db6cc5

Please sign in to comment.