How to detect failing IndexedDB in Firefox incognito mode?

23 views
Skip to first unread message

gleb bahmutov

unread,
Jul 14, 2015, 3:24:47 PM7/14/15
to pou...@googlegroups.com

How can I detect the failed IndexedDB when creating new PouchDB? Is there an event on the new pouchdb instance that gets emitted if the IndexedDB request fails?

Dale Harvey

unread,
Jul 14, 2015, 3:58:19 PM7/14/15
to pou...@googlegroups.com
Both

new PouchDB('name').catch(function(e) {
  console.log('caught');
});

and

new PouchDB('lastname', function (e, res) {
  if (e) {
    console.log('callback');
  }
});

work, try catch used to although doesnt seem to anymore

On 14 July 2015 at 15:19, gleb bahmutov <gleb.b...@gmail.com> wrote:

How can I detect the failed IndexedDB when creating new PouchDB? Is there an event on the new pouchdb instance that gets emitted if the IndexedDB request fails?

--
You received this message because you are subscribed to the Google Groups "PouchDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pouchdb+u...@googlegroups.com.
To post to this group, send email to pou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pouchdb/a42814dc-87db-4dea-ab63-4e46fe99cc21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages