Merge pull request #238 from johnrees/patch-1

Fix typo in README example
This commit is contained in:
Kevin Jahns
2020-09-28 18:36:35 +02:00
committed by GitHub

View File

@@ -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')
})