diff options
Diffstat (limited to 'youtube/static')
-rw-r--r-- | youtube/static/js/hotkeys.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/static/js/hotkeys.js b/youtube/static/js/hotkeys.js index b325e39..d8a2f53 100644 --- a/youtube/static/js/hotkeys.js +++ b/youtube/static/js/hotkeys.js @@ -26,7 +26,7 @@ function onKeyDown(e) { } else if (c == "f") { e.preventDefault(); - if (document.fullscreen) document.exitFullscreen(); + if (document.fullscreenElement) document.exitFullscreen(); else v.requestFullscreen(); } else if (c == "m") { |