diff options
author | Corey Hulen <corey@hulen.com> | 2015-08-23 20:33:31 -0700 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-08-23 20:33:31 -0700 |
commit | 1d39c13fd9e1f56fc199804162879a0b2d6c3a0d (patch) | |
tree | ee3286dc989e5e56a69e4151ca65d0168bc75cd1 /web | |
parent | 567dac0ec030ddff8ec5f105ecf7c72273058f60 (diff) | |
parent | 65349d0259647bd163fbc80b78ee0dfb3622ceaf (diff) | |
download | chat-1d39c13fd9e1f56fc199804162879a0b2d6c3a0d.tar.gz chat-1d39c13fd9e1f56fc199804162879a0b2d6c3a0d.tar.bz2 chat-1d39c13fd9e1f56fc199804162879a0b2d6c3a0d.zip |
Merge pull request #444 from nickago/MM-1795
MM-1795 Added fullscreen capability to youtube embed
Diffstat (limited to 'web')
-rw-r--r-- | web/react/utils/utils.jsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx index 09cd299df..4571312bb 100644 --- a/web/react/utils/utils.jsx +++ b/web/react/utils/utils.jsx @@ -271,11 +271,12 @@ function getYoutubeEmbed(link) { iframe.setAttribute('src', 'https://www.youtube.com/embed/' + div.id + - '?autoplay=1&autohide=1&border=0&wmode=opaque&enablejsapi=1'); + '?autoplay=1&autohide=1&border=0&wmode=opaque&fs=1&enablejsapi=1'); iframe.setAttribute('width', '480px'); iframe.setAttribute('height', '360px'); iframe.setAttribute('type', 'text/html'); iframe.setAttribute('frameborder', '0'); + iframe.setAttribute('allowfullscreen', 'allowfullscreen'); div.parentNode.replaceChild(iframe, div); } |