From 13e1233e0f283fff7a74445ebb0c8dbc384476d3 Mon Sep 17 00:00:00 2001 From: Daniel van Noord Date: Sat, 30 Jan 2021 01:16:18 +0100 Subject: [PATCH] Hot fix for jscolor --- CookieMonster.js | 2 +- src/Footer.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CookieMonster.js b/CookieMonster.js index 6f582de..10ed971 100644 --- a/CookieMonster.js +++ b/CookieMonster.js @@ -5507,7 +5507,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(); } /** @@ -5519,6 +5518,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); }