diff --git a/CookieMonster.js b/CookieMonster.js index a2f3042..01eade8 100644 --- a/CookieMonster.js +++ b/CookieMonster.js @@ -3322,7 +3322,7 @@ CM.Disp.CreatePrefOption = function(config) { input.style.width = '65px'; input.setAttribute('value', CM.Options.Colors[CM.Disp.colors[i]]); innerDiv.appendChild(input); - let change = function() {CM.Options.Colors[this.targetElement.id] = this.toHEXString(); CM.Disp.UpdateColors(); CM.Config.SaveConfig();}; + let change = function() {CM.Options.Colors[this.targetElement.id] = this.toHEXString(); CM.Disp.UpdateColors(); CM.Config.SaveConfig(); Game.UpdateMenu();}; let picker = new JSColor(input, {hash: true, position: "right", onInput: change}) var label = document.createElement('label'); label.textContent = CM.ConfigData.Colors.desc[CM.Disp.colors[i]]; diff --git a/src/Disp.js b/src/Disp.js index 5fef8ca..9d531be 100644 --- a/src/Disp.js +++ b/src/Disp.js @@ -2110,7 +2110,7 @@ CM.Disp.CreatePrefOption = function(config) { input.style.width = '65px'; input.setAttribute('value', CM.Options.Colors[CM.Disp.colors[i]]); innerDiv.appendChild(input); - let change = function() {CM.Options.Colors[this.targetElement.id] = this.toHEXString(); CM.Disp.UpdateColors(); CM.Config.SaveConfig();}; + let change = function() {CM.Options.Colors[this.targetElement.id] = this.toHEXString(); CM.Disp.UpdateColors(); CM.Config.SaveConfig(); Game.UpdateMenu();}; let picker = new JSColor(input, {hash: true, position: "right", onInput: change}) var label = document.createElement('label'); label.textContent = CM.ConfigData.Colors.desc[CM.Disp.colors[i]];