mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Add full screen button to tutorial videos in Safari
This commit is contained in:
parent
2a69ca3774
commit
e7366040f3
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue