mirror of https://github.com/huashengdun/webssh
Catch RangeError instead of TypeError
parent
e329a6b55b
commit
4d11a2ce2d
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue