IndexedDB creating an index with a space
I am trying to create an index with the following line
objectStore.createIndex('Team Name', 'Team Name', { unique: false });
this will return the following error Uncaught Error: SyntaxError: DOM
IDBDatabase Exception 12
However if I create the index and remove the space like this
objectStore.createIndex('Team Name', 'TeamName', { unique: false });
It works. This means I need to modify the data returned from an ajax call
to work with the fix. Is there a better solution?
No comments:
Post a Comment