*getMethods needs to be bound to the server instance

This commit is contained in:
Derrick Hammer 2022-08-28 02:49:20 -04:00
parent 16e8eab836
commit 61e10d8121
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ export class PluginApiManager {
getRpcServer().registerMethod(pluginName, methodName, method);
},
loadPlugin: getPluginAPI().loadPlugin,
getMethods: getRpcServer().getMethods,
getMethods: getRpcServer().getMethods.bind(getRpcServer()),
};
}
}