From 106bc0aa850ab7f47f183ac956aa99c00866dad5 Mon Sep 17 00:00:00 2001 From: KLuka Date: Tue, 17 Nov 2015 19:36:10 +0100 Subject: [PATCH] Issue #354: iOS client compatibility * Added more iOS clients that should use workaround to prevent ever groving console. --- shellinabox/vt100.jspp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shellinabox/vt100.jspp b/shellinabox/vt100.jspp index 5c1a0ed..c8c487a 100755 --- a/shellinabox/vt100.jspp +++ b/shellinabox/vt100.jspp @@ -1198,8 +1198,8 @@ VT100.prototype.resizer = function() { document.documentElement.clientHeight || document.body.clientHeight))-1; - // Prevent ever growing consoles on iPad. - if (navigator.userAgent.match(/iPad/i) != null) { + // Prevent ever growing console on some iOS clients. + if (navigator.userAgent.match(/iPad|iPhone|iPod/i) != null) { height -= 1; }