Update catproxy.js

This commit is contained in:
Namhyeon Go 2024-07-04 14:58:14 +09:00 committed by GitHub
parent 2e9143c220
commit 8a935345c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,7 +34,7 @@ function CatProxyClient(url) {
return;
}
}
this.exec = function() {
this.exec = function(params) {
var args = Array.from(arguments);
var rpc = JSONRPC2.create(env.target);
var result;
@ -51,7 +51,7 @@ function CatProxyClient(url) {
"query": query
}, null);
} else {
result = rpc.invoke(env.method, {}, null);
result = rpc.invoke(env.method, params, null);
}
return result;