diff --git a/CookieMonster.js b/CookieMonster.js index 6494c77..a2f3042 100644 --- a/CookieMonster.js +++ b/CookieMonster.js @@ -5640,7 +5640,6 @@ CM.Footer.AddJscolor = function() { CM.Footer.Jscolor.type = 'text/javascript'; CM.Footer.Jscolor.setAttribute('src', 'https://aktanusa.github.io/CookieMonster/jscolor/jscolor.js'); document.head.appendChild(CM.Footer.Jscolor); - jscolor.init(); } /** @@ -5652,6 +5651,7 @@ if (!CM.isRunning) { CM.Footer.AddJscolor(); var delay = setInterval(function() { if (typeof jscolor !== 'undefined') { + jscolor.init(); Game.registerMod('CookieMonster', CM); clearInterval(delay); } diff --git a/src/Footer.js b/src/Footer.js index e9a0168..ba6de7b 100644 --- a/src/Footer.js +++ b/src/Footer.js @@ -56,7 +56,6 @@ CM.Footer.AddJscolor = function() { CM.Footer.Jscolor.type = 'text/javascript'; CM.Footer.Jscolor.setAttribute('src', 'https://aktanusa.github.io/CookieMonster/jscolor/jscolor.js'); document.head.appendChild(CM.Footer.Jscolor); - jscolor.init(); } /** @@ -68,6 +67,7 @@ if (!CM.isRunning) { CM.Footer.AddJscolor(); var delay = setInterval(function() { if (typeof jscolor !== 'undefined') { + jscolor.init(); Game.registerMod('CookieMonster', CM); clearInterval(delay); }