Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix undefined index error #256

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions autoPlay.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// @name /u/wchill Monster Minigame Auto-script w/ auto-click
// @namespace https://github.com/wchill/steamSummerMinigame
// @description A script that runs the Steam Monster Minigame for you.
// @version 4.7.1
// @version 4.7.2
// @match *://steamcommunity.com/minigame/towerattack*
// @match *://steamcommunity.com//minigame/towerattack*
// @grant none
Expand All @@ -16,7 +16,7 @@
"use strict";

//Version displayed to client, update along with the @version above
var SCRIPT_VERSION = '4.7.1';
var SCRIPT_VERSION = '4.7.2';

// OPTIONS
var clickRate = 20;
Expand Down Expand Up @@ -567,7 +567,9 @@
e.children[e.children.length-1].remove();
}
};
this.m_eleUpdateLogContainer[0].innerHTML = "";
if (this.m_eleUpdateLogContainer && this.m_eleUpdateLogContainer[0]) {
this.m_eleUpdateLogContainer[0].innerHTML = "";
}
}
}

Expand Down