diff --git a/example/index.html b/example/index.html index ffdf62c2..10f3f6fb 100644 --- a/example/index.html +++ b/example/index.html @@ -147,6 +147,10 @@ window[namespace].wasmClientInvokeRPC('lnrpc.Lightning.' + rpcName, req, setResult); } + async function callWASMStatus(rpcName, req) { + window[namespace].wasmClientInvokeRPC('litrpc.Status.' + rpcName, req, setResult); + } + async function callWASMLoop(rpcName, req) { window[namespace].wasmClientInvokeRPC('looprpc.SwapClient.' + rpcName, req, setResult); } @@ -265,6 +269,9 @@ if (window[namespace].wasmClientHasPerms("wtclientrpc.WatchtowerClient.ListTowers")) { document.getElementById('wtclientrpc').disabled = false; } + if (window[namespace].wasmClientHasPerms("litrpc.Status.SubServerStatus")) { + document.getElementById('getstatus').disabled = false; + } if (window[namespace].wasmClientHasPerms("looprpc.SwapClient.LoopOutTerms")) { document.getElementById('loopoutterms').disabled = false; } @@ -352,6 +359,9 @@