Commit 4d11a2ce by Sheng

Catch RangeError instead of TypeError

parent e329a6b5
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment