Skip to content

Commit 47a5bf8

Browse files
committed
simplify Graphics._isFullScreen method
1 parent fff2cd1 commit 47a5bf8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

js/rpg_core/Graphics.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,9 +1199,10 @@ Graphics._switchFullScreen = function() {
11991199
* @private
12001200
*/
12011201
Graphics._isFullScreen = function() {
1202-
return ((document.fullscreenElement && document.fullscreenElement !== null) ||
1203-
(!document.mozFullScreen && !document.webkitFullscreenElement &&
1204-
!document.msFullscreenElement));
1202+
return document.fullscreenElement ||
1203+
document.mozFullScreen ||
1204+
document.webkitFullscreenElement ||
1205+
document.msFullscreenElement;
12051206
};
12061207

12071208
/**

0 commit comments

Comments
 (0)