From e7366040f348fe28055f52607be43c71136e48f8 Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Thu, 25 Feb 2016 17:13:42 -0800 Subject: [PATCH] Add full screen button to tutorial videos in Safari --- app/views/play/menu/GuideView.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/play/menu/GuideView.coffee b/app/views/play/menu/GuideView.coffee index 22e2d112a..69ece3850 100644 --- a/app/views/play/menu/GuideView.coffee +++ b/app/views/play/menu/GuideView.coffee @@ -138,7 +138,10 @@ module.exports = class LevelGuideView extends CocoView tag.height = @helpVideoHeight tag.width = @helpVideoWidth tag.allowFullscreen = true - @$el.find('#help-video-player').replaceWith(tag) + tag.mozAllowFullscreen = true + $tag = $(tag) + $tag.attr('webkitallowfullscreen', true) # strong arm Safari into working + @$el.find('#help-video-player').replaceWith($tag) @onMessageReceived = (e) => data = JSON.parse(e.data)