mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-30 19:04:44 +00:00
Merge pull request #1340 from felixhayashi/patch-2
Added missing piece to getFullScreenApis
This commit is contained in:
commit
575c11ee95
@ -148,9 +148,13 @@ exports.getFullScreenApis = function() {
|
|||||||
"_fullscreenElement": d.webkitFullscreenElement !== undefined ? "webkitFullscreenElement" :
|
"_fullscreenElement": d.webkitFullscreenElement !== undefined ? "webkitFullscreenElement" :
|
||||||
d.mozFullScreenElement !== undefined ? "mozFullScreenElement" :
|
d.mozFullScreenElement !== undefined ? "mozFullScreenElement" :
|
||||||
d.msFullscreenElement !== undefined ? "msFullscreenElement" :
|
d.msFullscreenElement !== undefined ? "msFullscreenElement" :
|
||||||
d.fullscreenElement !== undefined ? "fullscreenElement" : ""
|
d.fullscreenElement !== undefined ? "fullscreenElement" : "",
|
||||||
|
"_fullscreenChange": d.webkitFullscreenElement !== undefined ? "webkitfullscreenchange" :
|
||||||
|
d.mozFullScreenElement !== undefined ? "mozfullscreenchange" :
|
||||||
|
d.msFullscreenElement !== undefined ? "MSFullscreenChange" :
|
||||||
|
d.fullscreenElement !== undefined ? "fullscreenchange" : ""
|
||||||
};
|
};
|
||||||
if(!result._requestFullscreen || !result._exitFullscreen || !result._fullscreenElement) {
|
if(!result._requestFullscreen || !result._exitFullscreen || !result._fullscreenElement || !result._fullscreenChange) {
|
||||||
return null;
|
return null;
|
||||||
} else {
|
} else {
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user