webssh

Web based ssh client https://github.com/huashengdun/webssh webssh.huashengdun.org/
git clone http://git.hanabi.in/repos/webssh.git
Log | Files | Refs | README | LICENSE

commit 4d11a2ce2d4e542e5c0ce444e6230b41623a1dce
parent e329a6b55b31a01a09e9fcc3468bf2975c8c574f
Author: Sheng <webmaster0115@gmail.com>
Date:   Thu, 23 Aug 2018 20:41:06 +0800

Catch RangeError instead of TypeError

Diffstat:
Mwebssh/static/js/main.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webssh/static/js/main.js b/webssh/static/js/main.js @@ -123,7 +123,7 @@ jQuery(function($){ decoder = new window.TextDecoder(new_encoding); encoding = new_encoding; console.log('Set encoding to ' + encoding); - } catch(TypeError) { + } catch(RangeError) { console.log('Unknown encoding ' + new_encoding); } }