I have no idea what's wrong with this code:
onupgradeneeded = function(){
z = e.currentTarget.result.createObjectStore(
'record',
{keyPath:'id',autoIncrement:true}
);
z.createIndex('book', 'book', {unique:false});
z.createIndex('user', 'user', {unique:false});
}
When I try to put data into the object store using the following code:
db.transaction('record',IDBTransaction.READ_WRITE)
.objectStore('record')
.add({book:...,user:...})
I receive the following error message:
Data provided to an operation does not meet requirements