diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2020-04-18 02:05:18 +0300 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2020-04-18 23:28:00 +0300 |
commit | 350a1139968ec3db4da95cd27c4ce8b5be45c56a (patch) | |
tree | 9b03ea11f1ce9db4700ad6fcced440b48ca0f328 /ext/mixed/js/dom.js | |
parent | b786e2da1912dfa7d707db628d54fb914189f7d1 (diff) |
use getFullscreenElement to check fullscreen
Diffstat (limited to 'ext/mixed/js/dom.js')
-rw-r--r-- | ext/mixed/js/dom.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/mixed/js/dom.js b/ext/mixed/js/dom.js index 03acbb80..31ba33d6 100644 --- a/ext/mixed/js/dom.js +++ b/ext/mixed/js/dom.js @@ -62,4 +62,14 @@ class DOM { default: return false; } } + + static getFullscreenElement() { + return ( + document.fullscreenElement || + document.msFullscreenElement || + document.mozFullScreenElement || + document.webkitFullscreenElement || + null + ); + } } |