aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-04-18 02:05:18 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2020-04-18 23:28:00 +0300
commit350a1139968ec3db4da95cd27c4ce8b5be45c56a (patch)
tree9b03ea11f1ce9db4700ad6fcced440b48ca0f328 /ext/mixed
parentb786e2da1912dfa7d707db628d54fb914189f7d1 (diff)
use getFullscreenElement to check fullscreen
Diffstat (limited to 'ext/mixed')
-rw-r--r--ext/mixed/js/dom.js10
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
+ );
+ }
}