2 ms·
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:
by realusername 11y 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')}