move goodies outside of preload()

This commit is contained in:
Astra 2018-05-08 00:48:25 -04:00
parent 9aa6dabc73
commit fe57dfd1f6
1 changed files with 8 additions and 7 deletions

View File

@ -18,17 +18,18 @@ function __epprint(str) {
console.log(`%c[EndPwn]%c ` + str, 'font-weight:bold;color:#0cc', ''); console.log(`%c[EndPwn]%c ` + str, 'font-weight:bold;color:#0cc', '');
} }
// define this with a default value as a fallback
var __goodies = {
guilds: [],
devs: [],
bots: [],
users: {}
};
exports = { exports = {
preload: function () { preload: function () {
// define this with a default value as a fallback
var __goodies = {
guilds: [],
bots: [],
users: {}
};
function fetchGoodies() { function fetchGoodies() {
// fetch goodies.json // fetch goodies.json
__epprint('fetching endpwn cutomizer data from server...'); __epprint('fetching endpwn cutomizer data from server...');