From 8c4a905ec4542e394aaf5c1df87d4bbafa749ede Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 24 Jun 2019 01:05:51 -0700 Subject: [PATCH] Allow Streamable embeds to be made fullscreen. --- src/Linkification/Embedding.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Linkification/Embedding.coffee b/src/Linkification/Embedding.coffee index 9dcc57851..a4f25d254 100644 --- a/src/Linkification/Embedding.coffee +++ b/src/Linkification/Embedding.coffee @@ -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