*loadPlugin needs to be bound

This commit is contained in:
Derrick Hammer 2022-08-28 22:39:51 -04:00
parent a6c0d5aa7b
commit d1b180c8cd
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ export class PluginApiManager {
registerMethod: (methodName: string, method: RPCMethod): void => {
getRpcServer().registerMethod(pluginName, methodName, method);
},
loadPlugin: getPluginAPI().loadPlugin,
loadPlugin: getPluginAPI().loadPlugin.bind(getPluginAPI()),
getMethods: getRpcServer().getMethods.bind(getRpcServer()),
};
}