Fix fullscreen in Vimeo embeds.

This commit is contained in:
ccd0 2016-04-22 03:41:36 -07:00
parent b6e64fb732
commit 3355b6dae5

View File

@ -292,8 +292,10 @@ Embedding =
key: 'Vimeo'
regExp: /^\w+:\/\/(?:www\.)?vimeo\.com\/(\d+)/
el: (a) ->
$.el 'iframe',
el = $.el 'iframe',
src: "//player.vimeo.com/video/#{a.dataset.uid}?wmode=opaque"
el.setAttribute "allowfullscreen", "true"
el
title:
api: (uid) -> "https://vimeo.com/api/oembed.json?url=https://vimeo.com/#{uid}"
text: (_) -> _.title