summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authornickago <ngonella@calpoly.edu>2015-08-21 15:20:01 -0700
committernickago <ngonella@calpoly.edu>2015-08-21 15:21:47 -0700
commit65349d0259647bd163fbc80b78ee0dfb3622ceaf (patch)
tree50b1dfe56639e15a118b4c4036cdeea5a620d7b0 /web
parentddcdcc3e2c85efbfd1d91d69c0f5c0af7c7cb1c7 (diff)
downloadchat-65349d0259647bd163fbc80b78ee0dfb3622ceaf.tar.gz
chat-65349d0259647bd163fbc80b78ee0dfb3622ceaf.tar.bz2
chat-65349d0259647bd163fbc80b78ee0dfb3622ceaf.zip
Added fullscreen capability to youtube embed
Diffstat (limited to 'web')
-rw-r--r--web/react/utils/utils.jsx3
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);
}