PluginManager: catch errors during plugin flux handlers

This commit is contained in:
Vendicated 2024-06-21 22:42:25 +02:00
parent b9392c3be2
commit 0b033aa51b
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
3 changed files with 103 additions and 97 deletions

View file

@ -128,7 +128,7 @@ export interface PluginDef {
* Allows you to subscribe to Flux events
*/
flux?: {
[E in FluxEvents]?: (event: any) => void;
[E in FluxEvents]?: (event: any) => void | Promise<void>;
};
/**
* Allows you to manipulate context menus