move goodies outside of preload()
This commit is contained in:
parent
9aa6dabc73
commit
fe57dfd1f6
15
plugin.js
15
plugin.js
|
@ -18,17 +18,18 @@ function __epprint(str) {
|
|||
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 = {
|
||||
|
||||
preload: function () {
|
||||
|
||||
// define this with a default value as a fallback
|
||||
var __goodies = {
|
||||
guilds: [],
|
||||
bots: [],
|
||||
users: {}
|
||||
};
|
||||
|
||||
function fetchGoodies() {
|
||||
// fetch goodies.json
|
||||
__epprint('fetching endpwn cutomizer data from server...');
|
||||
|
|
Loading…
Reference in New Issue