Skip to content

Commit

Permalink
catch and emit error from idb.openDB
Browse files Browse the repository at this point in the history
  • Loading branch information
jpobley committed Oct 2, 2021
1 parent 14c2bd1 commit 548e2f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/y-indexeddb.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ export class IndexeddbPersistence extends Observable {
this.synced = true
return this
})
}).catch(e => {
this.emit('error', [e])
return e
})
/**
* Timeout in ms untill data is merged and persisted in idb.
Expand Down

0 comments on commit 548e2f6

Please sign in to comment.