This commit is contained in:
2017-09-11 18:15:53 +02:00
parent 2c3f081d99
commit 4565469216
+1 -1
View File
@@ -47,7 +47,7 @@ window.termInit = function (labels, theme) {
// add fullscreen mode & button
if (Element.prototype.requestFullscreen || Element.prototype.webkitRequestFullscreen) {
let checkForFullscreen = function () {
// document.fullscreenElement is not really support yet, so here's a hack
// document.fullscreenElement is not really supported yet, so here's a hack
if (isFullscreen && (innerWidth !== window.screen.width || innerHeight !== window.screen.height)) {
isFullscreen = false
fitScreenIfNeeded()