diff --git a/templates/vanilla/example/ui/index.html.hbs b/templates/vanilla/example/ui/index.html.hbs index 4f96f40db..282881108 100644 --- a/templates/vanilla/example/ui/index.html.hbs +++ b/templates/vanilla/example/ui/index.html.hbs @@ -46,7 +46,7 @@ async function connect() { // We pass an unused string as the url because it will dynamically be replaced in launcher environments - const client = await AppAgentWebsocket.connect(new URL('https://UNUSED'), 'hello-world'); + client = await AppAgentWebsocket.connect(new URL('https://UNUSED'), 'hello-world'); const canvas = document.getElementById('pubkey') pubkey.title = encodeHashToBase64(client.myPubKey) const opts = { @@ -63,7 +63,6 @@ fn_name: 'hello_world', payload: message, }); - } async function getHellos() {