*getMethods needs to be bound to the server instance
This commit is contained in:
parent
16e8eab836
commit
61e10d8121
|
@ -63,7 +63,7 @@ export class PluginApiManager {
|
||||||
getRpcServer().registerMethod(pluginName, methodName, method);
|
getRpcServer().registerMethod(pluginName, methodName, method);
|
||||||
},
|
},
|
||||||
loadPlugin: getPluginAPI().loadPlugin,
|
loadPlugin: getPluginAPI().loadPlugin,
|
||||||
getMethods: getRpcServer().getMethods,
|
getMethods: getRpcServer().getMethods.bind(getRpcServer()),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue