From 546c5d3297dd9dffc8648707ed0eed9cedaadfa9 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Fri, 9 May 2014 01:15:29 -0700 Subject: [PATCH] soundcloud doesn't need to inject their own HTML --- src/Linkification/Linkify.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index 7ede416af..1e0819fc2 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -349,7 +349,8 @@ Linkify = $.ajax( "//soundcloud.com/oembed?show_artwork=false&&maxwidth=500px&show_comments=false&format=json&url=https://www.soundcloud.com/#{a.dataset.uid}" onloadend: -> - div.innerHTML = JSON.parse(@responseText).html + div.innerHTML = '' + div.firstChild.src = JSON.parse(@responseText).html.match(/\bsrc="([^"]+)"/)[1] false) div title: