diff --git a/README.md b/README.md index afd9cd3c..b2dc629a 100644 --- a/README.md +++ b/README.md @@ -198,7 +198,7 @@ const ydoc = new Y.Doc() // this allows you to instantly get the (cached) documents data const indexeddbProvider = new IndexeddbPersistence('count-demo', ydoc) -idbP.whenSynced.then(() => { +indexeddbProvider.whenSynced.then(() => { console.log('loaded data from indexed db') })