aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/static/js
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2020-12-16 21:52:34 -0500
committerJesús <heckyel@hyperbola.info>2020-12-16 21:52:34 -0500
commit1a0a3033209aa0d6376d39fd6adcb153f8bcdd88 (patch)
tree3af14a8c959e3580f0419e360f279d42d29f7d78 /youtube/static/js
parent3fa5a55f570887a05de14a76e5e31bb56605280f (diff)
downloadyt-local-1a0a3033209aa0d6376d39fd6adcb153f8bcdd88.tar.lz
yt-local-1a0a3033209aa0d6376d39fd6adcb153f8bcdd88.tar.xz
yt-local-1a0a3033209aa0d6376d39fd6adcb153f8bcdd88.zip
Replace document.fullscreen for fullscreenElement
This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. More info in https://developer.mozilla.org/en-US/docs/Web/API/Document/fullscreen#Deprecated
Diffstat (limited to 'youtube/static/js')
-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") {