Compare commits

...

2 Commits
main ... main

Author SHA1 Message Date
Manti 44a3c50415 more fix
4 months ago
Manti 3571bb2faf fix
4 months ago

@ -8,7 +8,7 @@ export function find(filter) {
if (process.env.CLIENT_MOD == "goosemod") return clientWebpack.find(filter);
else if (process.env.CLIENT_MOD == "powercordv2") {
let isDefault = false;
const mod = clientWebpack.getModule(x => x?.default && filter(x.default) && (isDefault = true), false) || clientWebpack.getModule(filter, false);
const mod = clientWebpack.getModule(x => x?.default && filter(x) && (isDefault = true), false) || clientWebpack.getModule(filter, false);
return isDefault ? mod.default : mod;
}
@ -17,7 +17,7 @@ export function find(filter) {
export function findAll(filter) {
if (process.env.CLIENT_MOD == "goosemod") return clientWebpack.findAll(filter);
else if (process.env.CLIENT_MOD == "powercordv2") return clientWebpack.getAllModules(x => x?.default && filter(x.default), false) || clientWebpack.getModule(filter, false);
else if (process.env.CLIENT_MOD == "powercordv2") return clientWebpack.getAllModules(x => x?.default && filter(x), false) || clientWebpack.getModule(filter, false);
else if (process.env.CLIENT_MOD == "betterdiscord") return clientWebpack.findAllModules(filter);
}

Loading…
Cancel
Save