Android Chrome compat

This commit is contained in:
Ian Gulliver
2019-07-18 04:11:56 +00:00
parent a79dcd4475
commit 199789b7fd

View File

@@ -349,8 +349,12 @@ class Architype {
toggleFullScreen() {
if (document.fullscreenElement) {
document.exitFullscreen();
} else {
} else if (document.webkitFullscreenElement) {
document.webkitExitFullscreen();
} else if (this.container_.requestFullscreen) {
this.container_.requestFullscreen();
} else if (this.container_.webkitRequestFullscreen) {
this.container_.webkitRequestFullscreen();
}
}
}