Add full screen button to tutorial videos in Safari

This commit is contained in:
Scott Erickson 2016-02-25 17:13:42 -08:00
parent 2a69ca3774
commit e7366040f3

View file

@ -138,7 +138,10 @@ module.exports = class LevelGuideView extends CocoView
tag.height = @helpVideoHeight tag.height = @helpVideoHeight
tag.width = @helpVideoWidth tag.width = @helpVideoWidth
tag.allowFullscreen = true 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) => @onMessageReceived = (e) =>
data = JSON.parse(e.data) data = JSON.parse(e.data)