Changed Header.js to use const
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user