*loadPlugin needs to be bound
This commit is contained in:
parent
a6c0d5aa7b
commit
d1b180c8cd
|
@ -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()),
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue