aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--youtube/static/js/hotkeys.js2
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") {