Changed Header.js to use const

This commit is contained in:
Daniel van Noord
2021-02-09 23:51:03 +01:00
parent d1336efb90
commit 4c009df819
2 changed files with 14 additions and 28 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,32 +1,18 @@
/* eslint-disable no-redeclare */
/* eslint-disable no-unused-vars */
/**********
* Header *
**********/
var RunCookieMonsterHeader = function() {
CM = {};
CM.Backup = {};
CM.Cache = {};
CM.Config = {};
CM.ConfigData = {};
CM.Data = {};
CM.Disp = {};
CM.Footer = {};
CM.Main = {};
CM.Options = {};
CM.Sim = {};
const CM = {
Backup: {},
Cache: {},
Config: {},
ConfigData: {},
Data: {},
Disp: {},
Footer: {},
Main: {},
Options: {},
Sim: {},
};
if (typeof CM == "undefined") {
RunCookieMonsterHeader();
}