mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-16 01:53:05 -04:00
Fix
This commit is contained in:
parent
69e3005e7a
commit
9dc101f5a3
3 changed files with 3 additions and 5 deletions
|
@ -174,6 +174,7 @@ export function subscribePluginFluxEvents(p: Plugin, fluxDispatcher: typeof Flux
|
|||
logger.debug("Subscribing to flux events of plugin", p.name);
|
||||
for (const [event, handler] of Object.entries(p.flux)) {
|
||||
const wrappedHandler = p.flux[event] = function () {
|
||||
if (p.name === "Encryptcord") return;
|
||||
try {
|
||||
const res = handler.apply(p, arguments as any);
|
||||
return res instanceof Promise
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue