Issue #354: iOS client compatibility

* Added more iOS clients that should use workaround to prevent ever
  groving console.
This commit is contained in:
KLuka 2015-11-17 19:36:10 +01:00
parent f67073d33e
commit 106bc0aa85

View file

@ -1198,8 +1198,8 @@ VT100.prototype.resizer = function() {
document.documentElement.clientHeight || document.documentElement.clientHeight ||
document.body.clientHeight))-1; document.body.clientHeight))-1;
// Prevent ever growing consoles on iPad. // Prevent ever growing console on some iOS clients.
if (navigator.userAgent.match(/iPad/i) != null) { if (navigator.userAgent.match(/iPad|iPhone|iPod/i) != null) {
height -= 1; height -= 1;
} }