Skip to content

Commit

Permalink
Merge pull request holochain#168 from holochain/fix-hello-world-example
Browse files Browse the repository at this point in the history
Fix missing client in hello-world example
  • Loading branch information
ThetaSinner committed Jan 3, 2024
1 parent 4501de1 commit 23b702a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions templates/vanilla/example/ui/index.html.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -63,7 +63,6 @@
fn_name: 'hello_world',
payload: message,
});
}
async function getHellos() {
Expand Down

0 comments on commit 23b702a

Please sign in to comment.