diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index b33b8ee85..b01696321 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -222,8 +222,8 @@ Linkify = el = (type = Linkify.types[a.dataset.key]).el a # Set style values. - el.style.cssText = if style = type.style - style + el.style.cssText = if type.style? + type.style else "border: 0; width: 640px; height: 390px" @@ -403,10 +403,12 @@ Linkify = , key: 'Vocaroo' regExp: /.*(?:vocaroo.com\/)([^#\&\?]*).*/ - style: 'border: 0; width: 150px; height: 45px;' + style: '' el: (a) -> - $.el 'object', - innerHTML: "" + $.el 'audio', + controls: true + preload: 'auto' + src: "http://vocaroo.com/media_command.php?media=#{a.dataset.uid.replace /^i\//, ''}&command=download_ogg" , key: 'Vimeo' regExp: /.*(?:vimeo.com\/)([^#\&\?]*).*/