Allow Streamable embeds to be made fullscreen.

This commit is contained in:
ccd0 2019-06-24 01:05:51 -07:00
parent 558ff0fcb3
commit 8c4a905ec4

View File

@ -385,8 +385,10 @@ Embedding =
key: 'Streamable'
regExp: /^\w+:\/\/(?:www\.)?streamable\.com\/([\w\d]+)/
el: (a) ->
$.el 'iframe',
el = $.el 'iframe',
src: "https://streamable.com/o/#{a.dataset.uid}"
el.setAttribute "allowfullscreen", "true"
el
title:
api: (uid) -> "https://api.streamable.com/oembed?url=https://streamable.com/#{uid}"
text: (_) -> _.title