lib/onebox/engine/audio_onebox.rb in onebox-1.5.21 vs lib/onebox/engine/audio_onebox.rb in onebox-1.5.22

- old
+ new

@@ -3,9 +3,13 @@ class AudioOnebox include Engine matches_regexp /^(https?:)?\/\/.*\.(mp3|ogg|wav)(\?.*)?$/ + def always_https? + WhitelistedGenericOnebox.host_matches(uri, WhitelistedGenericOnebox.https_hosts) + end + def to_html "<audio controls><source src='#{@url}'><a href='#{@url}'>#{@url}</a></audio>" end end end