From b432902fc913aec8cc168a2eb73b151fff574788 Mon Sep 17 00:00:00 2001 From: Franck R Date: Fri, 11 Feb 2022 16:46:41 +1100 Subject: [PATCH] Remove TODO, update code (#518) --- examples/unpkg-js-store/index.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/unpkg-js-store/index.html b/examples/unpkg-js-store/index.html index aac0a2b8c2..9a9d724e69 100644 --- a/examples/unpkg-js-store/index.html +++ b/examples/unpkg-js-store/index.html @@ -19,21 +19,19 @@ * This example demonstrates how to use the js-waku minified bundle * available on unpkg.com. * - * It is a simple scripts that uses Waku Store to retrieve ping relay messages + * It is a simple script that uses Waku Store to retrieve ping relay messages * and displays the timestamp of the most recent ping relay message. - * - * More explanations are provided in this guide (TODO). */ const timestampDiv = document.getElementById('timestamp'); try { timestampDiv.innerHTML = '

Starting waku.

'; - jswaku.Waku.create({ bootstrap: true }).catch(e => { + jswaku.Waku.create({ bootstrap: { default: true } }).catch(e => { timestampDiv.innerHTML = 'Failed to create Waku: ' + e.toString(); } ).then(waku => { timestampDiv.innerHTML = '

Connecting to a peer.

'; - waku.waitForConnectedPeer() + waku.waitForRemotePeer() .catch((e) => { timestampDiv.innerHTML = 'Failed to connect to peers' + e.toString(); })