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
commit c2f0ca3fae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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