mirror of
https://github.com/tsl0922/ttyd.git
synced 2025-12-22 11:54:19 +01:00
Improve base64 decode and utf8 handling
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
var data = event.data.slice(1);
|
||||
switch(event.data[0]) {
|
||||
case '0':
|
||||
term.write(decodeURIComponent(escape(window.atob(data))));
|
||||
term.writeUTF8(window.atob(data));
|
||||
break;
|
||||
case '1': // pong
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user