1

Firefox disables IndexedDB in private browsing. Does YDN fallback to another mechanism in that case? We are getting InvalidStateErrors which tell me that it just fails.

If that's the case, is there a way we can get force YDN to use a different mechanism?

Thanks!

RAD
  • 13
  • 2

1 Answers1

1

It should automatically select suitable storage mechanism in private browsing.

To change storage mechanism, use mechanisms options as follow:

var db = new ydn.db.Storage('db name', null, {mechanisms: ['memory']});

Edit: 2016 Nov

IndexedDB is available (but not persist) in Chrome incognito mode. Firefox is working to make IndexedDB available in private mode.

Kyaw Tun
  • 12,447
  • 10
  • 56
  • 83