mirror of
https://github.com/EndPwnArchive/endpwn3.git
synced 2024-08-15 00:23:30 +00:00
move goodies outside of preload()
This commit is contained in:
parent
9aa6dabc73
commit
fe57dfd1f6
1 changed files with 8 additions and 7 deletions
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 a new issue