diff --git a/views/default-mobile.handlebars b/views/default-mobile.handlebars index 6d524a0f..375e60c8 100644 --- a/views/default-mobile.handlebars +++ b/views/default-mobile.handlebars @@ -4932,7 +4932,9 @@ case 'sessionerror': { p12setConsoleMsg("Session expired", 5000); break; } case 'sessiontimeout': { p12setConsoleMsg("Session timeout", 5000); break; } } - } else if (data[0] == '~') { xterm.writeUtf8(data.substring(1)); } + } else if (data[0] == '~') { + if (xterm.writeUtf8) { xterm.writeUtf8(data.substring(1)); } else { xterm.write(data.substring(1)); } + } } }