mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 00:59:29 +00:00
Url is not a real property of the an audio object
This commit is contained in:
parent
a5485cfb4f
commit
96ef91cff6
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue