move goodies outside of preload()

This commit is contained in:
Astra 2018-05-08 00:48:25 -04:00
parent 9aa6dabc73
commit fe57dfd1f6

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', '');
} }
exports = {
preload: function () {
// define this with a default value as a fallback // define this with a default value as a fallback
var __goodies = { var __goodies = {
guilds: [], guilds: [],
devs: [],
bots: [], bots: [],
users: {} users: {}
}; };
exports = {
preload: function () {
function fetchGoodies() { function fetchGoodies() {
// fetch goodies.json // fetch goodies.json
__epprint('fetching endpwn cutomizer data from server...'); __epprint('fetching endpwn cutomizer data from server...');