fix: rename handleGetNetworkType
This commit is contained in:
parent
d6c8e85871
commit
d9163a4e53
|
@ -5,7 +5,7 @@ const networks: Map<string, Set<string>> = new Map<string, Set<string>>();
|
||||||
|
|
||||||
addHandler("registerType", handleRegisterType);
|
addHandler("registerType", handleRegisterType);
|
||||||
addHandler("getTypes", handleGetTypes);
|
addHandler("getTypes", handleGetTypes);
|
||||||
addHandler("getNetworkTypes", handleGetNetworkType);
|
addHandler("getNetworkTypes", handleGetNetworkTypes);
|
||||||
addHandler("registerNetwork", handleRegisterNetwork);
|
addHandler("registerNetwork", handleRegisterNetwork);
|
||||||
|
|
||||||
function handleRegisterType(aq: ActiveQuery) {
|
function handleRegisterType(aq: ActiveQuery) {
|
||||||
|
@ -40,7 +40,7 @@ function handleRegisterNetwork(aq: ActiveQuery) {
|
||||||
aq.respond();
|
aq.respond();
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleGetNetworkType(aq: ActiveQuery) {
|
function handleGetNetworkTypes(aq: ActiveQuery) {
|
||||||
if (!("module" in aq.callerInput)) {
|
if (!("module" in aq.callerInput)) {
|
||||||
aq.reject("module missing");
|
aq.reject("module missing");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue