JakobKallin / RPG-Ambience

Bring your tabletop RPGs to life with sound and visuals.
http://rpg-ambience.com
GNU General Public License v3.0
36 stars 9 forks source link

Incomplete media saving makes adventure data inconsistent #23

Closed JakobKallin closed 11 years ago

JakobKallin commented 11 years ago

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().