Replaced var with let

This commit is contained in:
Daniël van Noord
2021-02-20 16:12:16 +01:00
parent f3ceec3c91
commit 43fb9112a7
7 changed files with 252 additions and 252 deletions

View File

@@ -13,7 +13,7 @@
*/
CM.init = function() {
CM.Footer.isInitzializing = true
var proceed = true;
let proceed = true;
if (Game.version != CM.VersionMajor) {
proceed = confirm('Cookie Monster version ' + CM.VersionMajor + '.' + CM.VersionMinor + ' is meant for Game version ' + CM.VersionMajor + '. Loading a different version may cause errors. Do you still want to load Cookie Monster?');
}
@@ -67,7 +67,7 @@ CM.Footer.AddJscolor = function() {
*/
if (typeof CM.Footer.isInitzializing === 'undefined') {
CM.Footer.AddJscolor();
var delay = setInterval(function() {
let delay = setInterval(function() {
if (typeof jscolor !== 'undefined') {
jscolor.init();
Game.registerMod('CookieMonster', CM);