diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index 5001307e0..180f98ed0 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -304,8 +304,8 @@ Linkify = el.firstChild.href = a.dataset.href el.firstChild.firstChild.src = "https://mediacru.sh/#{file.file}" when 'audio/mpeg', 'audio/ogg' - el.innerHTML = '' - for ext, i in ['mp3', 'ogg'] + el.innerHTML = '' + for ext, i in ['ogg', 'mp3'] el.firstChild.children[i].src = "https://mediacru.sh/#{a.dataset.uid}.#{ext}" else el.textContent = "ERROR: No valid filetype."