Fixed minor bug with Chocolate Egg stat and fixed how undefined was checked (Thanks The_omniscent_pie)

This commit is contained in:
Aktanusa
2014-09-09 20:13:56 -04:00
parent fb83f6679a
commit e5ce8e5ebd
6 changed files with 31 additions and 29 deletions

View File

@@ -75,7 +75,7 @@ If you'd rather use the addon as a script via per example *Greasemonkey* or *Tam
javascript:(function() {
var checkReady = setInterval(function() {
if (Game.ready != undefined && Game.ready) {
if (typeof Game.ready !== 'undefined' && Game.ready) {
Game.LoadMod('http://aktanusa.github.io/CookieMonster/CookieMonster.js');
clearInterval(checkReady);
}