Url is not a real property of the an audio object

This commit is contained in:
Jordan Eldredge 2018-09-17 08:32:52 -07:00
parent a5485cfb4f
commit 96ef91cff6

View file

@ -40,7 +40,7 @@ export function genMediaDuration(url) {
const durationChange = () => {
resolve(audio.duration);
audio.removeEventListener("durationchange", durationChange);
audio.url = null;
audio.src = "";
// TODO: Not sure if this really gets cleaned up.
};
audio.addEventListener("durationchange", durationChange);