A media item added to a scene is immediately stored in the adventure object, even before the request to add it to IndexedDB has completed. If the application is terminated during this time, the adventure data links to a media ID that is not in the database. This is not a fatal error; it simply generates a request for a non-existing key in the database, causing errors when trying to reference properties of the dataURL variable inside MediaLibrary.load().
A media item added to a scene is immediately stored in the adventure object, even before the request to add it to IndexedDB has completed. If the application is terminated during this time, the adventure data links to a media ID that is not in the database. This is not a fatal error; it simply generates a request for a non-existing key in the database, causing errors when trying to reference properties of the dataURL variable inside MediaLibrary.load().