soundcloud doesn't need to inject their own HTML
This commit is contained in:
parent
0110186caa
commit
546c5d3297
@ -349,7 +349,8 @@ Linkify =
|
|||||||
$.ajax(
|
$.ajax(
|
||||||
"//soundcloud.com/oembed?show_artwork=false&&maxwidth=500px&show_comments=false&format=json&url=https://www.soundcloud.com/#{a.dataset.uid}"
|
"//soundcloud.com/oembed?show_artwork=false&&maxwidth=500px&show_comments=false&format=json&url=https://www.soundcloud.com/#{a.dataset.uid}"
|
||||||
onloadend: ->
|
onloadend: ->
|
||||||
div.innerHTML = JSON.parse(@responseText).html
|
div.innerHTML = '<iframe width="500" height="400" scrolling="no" frameborder="no"></iframe>'
|
||||||
|
div.firstChild.src = JSON.parse(@responseText).html.match(/\bsrc="([^"]+)"/)[1]
|
||||||
false)
|
false)
|
||||||
div
|
div
|
||||||
title:
|
title:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user