Hi,
I’ve been trying to get the example with the note storage from https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Client-side_web_APIs/Client-side_storage to work.
I have copied all the script directly from the website as instructed and since it doesn’t work I also copied the full script from Github at https://github.com/mdn/learning-area/blob/master/javascript/apis/client-side-storage/indexeddb/notes/index.js
The live example at https://mdn.github.io/learning-area/javascript/apis/client-side-storage/indexeddb/notes/ runs fine, but if I try to run my local copy I get the following error: Uncaught DOMException: IDBDatabase.transaction: ‘notes_os’ is not a known object store name
Does this have anything to do with running it from a local file instead of throught the internet? Since I am using a copy of the script on gitHub I have not provided a link to my own script.
thanks a lot for any help on this.