From 96ef91cff6397332b0c68d22949dae52151b2e62 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Mon, 17 Sep 2018 08:32:52 -0700 Subject: [PATCH] Url is not a real property of the an audio object --- js/fileUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/fileUtils.js b/js/fileUtils.js index 7fc18c4f..baa38fdd 100644 --- a/js/fileUtils.js +++ b/js/fileUtils.js @@ -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);