Question

I am learning indexeddb and after 4 hours of reading, i started a small project. after a while, nothing worked ... so i finally found out an example:

http://pastebin.com/nnrNkk8T#

but I get:

InvalidStateError


var request = indexedDB.open('todos', 5);

at first, i thought it was because I was using the wrong version of FF but I have 28.0 .. which this feature is supported since 27.

what am I doing wrong...

Was it helpful?

Solution

The problem was that Timmy tried to open IndexedDB from file system and Firefox doesn't support running IDB from local files: https://bugzilla.mozilla.org/show_bug.cgi?id=643318

The solution is hosting the page in some web server and accessing it from there.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top