We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seems when this function is invoked, the db.version has been changed. So, I try to change codes as followed, please check:
request.onupgradeneeded = function(e) { todoDB.indexedDB.db = e.target.result; var db = todoDB.indexedDB.db; console.log ("Going to upgrade our DB from version: "+ e.oldVersion + " to " + e.newVersion); if(db.objectStoreNames.contains("todo")) { db.deleteObjectStore("todo"); } var store = db.createObjectStore("todo", {keyPath: "timeStamp"}); console.log("-- onupgradeneeded store:"+ JSON.stringify(store)); };
The text was updated successfully, but these errors were encountered:
Could you please have a look at the changes that I've made to the code? I guess it was the objectStoreNames that coz it. Thanks!
Sorry, something went wrong.
closing... ✔️
No branches or pull requests
Seems when this function is invoked, the db.version has been changed.
So, I try to change codes as followed, please check:
The text was updated successfully, but these errors were encountered: