I am getting an error when opening an indexedDB database on Firefox. This code works fine in Chrome, but fails in Firefox.
<script type="text/javascript">
var indexedDB = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB || window.msIndexedDB;
var request = indexedDB.open("TestDB", 1);
</script>
The Javascript error occurs on the line indexedDB.open("TestDB", 1)
.
In my case, this error was due to privacy settings in Firefox. Setting history settings to "Firefox will: Remember history" in the preferences panel enabled IndexedDB to work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With