Hacker News new | ask | show | jobs
by realusername 3728 days ago
On Firefox, IndexDB throws an InvalidStateError only on private mode, I'm sure there are equivalents for Chrome.

You can try that in the console of Firefox:

  var request = window.indexedDB.open("MyTestDatabase", 3);request.onerror = function (event) { if (event.target.error.name === 'InvalidStateError') alert('private mode')}