diff --git a/CookieMonster.js b/CookieMonster.js index ed206d0..9172f34 100644 --- a/CookieMonster.js +++ b/CookieMonster.js @@ -3911,7 +3911,7 @@ CM.Disp.AddMissingUpgrades = function() { let titlefrag = document.createElement('div'); titlefrag.innerHTML = 'Missing normal upgrades: '+ normalUpgradesMissing + '/' + (Game.UpgradesByPool[""].length + Game.UpgradesByPool.tech.length) + ' (' + Math.floor((normalUpgradesMissing / ( Game.UpgradesByPool[""].length + Game.UpgradesByPool.tech.length)) * 100) + '%)'; title.appendChild(titlefrag); - menuSection.insertBefore(title, l('menu').children[6].childNodes[3]); + menuSection.insertBefore(title, menuSection.childNodes[3]); let upgrades = document.createElement('div'); upgrades.className = "listing crateBox"; upgrades.innerHTML = CM.Cache.MissingUpgrades; diff --git a/src/Disp.js b/src/Disp.js index 333ba20..4937770 100644 --- a/src/Disp.js +++ b/src/Disp.js @@ -2727,7 +2727,7 @@ CM.Disp.AddMissingUpgrades = function() { let titlefrag = document.createElement('div'); titlefrag.innerHTML = 'Missing normal upgrades: '+ normalUpgradesMissing + '/' + (Game.UpgradesByPool[""].length + Game.UpgradesByPool.tech.length) + ' (' + Math.floor((normalUpgradesMissing / ( Game.UpgradesByPool[""].length + Game.UpgradesByPool.tech.length)) * 100) + '%)'; title.appendChild(titlefrag); - menuSection.insertBefore(title, l('menu').children[6].childNodes[3]); + menuSection.insertBefore(title, menuSection.childNodes[3]); let upgrades = document.createElement('div'); upgrades.className = "listing crateBox"; upgrades.innerHTML = CM.Cache.MissingUpgrades;