Skip to content

Commit

Permalink
fix Empty string passed to getElementById(). 790 equipment.js:397:31
Browse files Browse the repository at this point in the history
  • Loading branch information
genbtc committed Nov 3, 2023
1 parent 60966fa commit 0566440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/equipment.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ function autoLevelEquipment() {
game.global.buyAmt = 1; //needed for buyEquipment()
for (var stat in Best) {
var eqName = Best[stat].Name;
var $eqName = document.getElementById(eqName);
if (eqName !== '') {
var $eqName = document.getElementById(eqName);
var DaThing = equipmentList[eqName];
if (eqName == 'Gym' && needGymystic) {
$eqName.style.color = 'white';
Expand Down

0 comments on commit 0566440

Please sign in to comment.