Revert "change demo to utf8 input"

This reverts commit e6e5ecc0f2.
This commit is contained in:
Jörg Breitbart
2019-05-12 22:17:06 +02:00
parent 06c292c11d
commit c0e9bbe87f
3 changed files with 6 additions and 13 deletions
-5
View File
@@ -42,11 +42,6 @@ export function attach(term: Terminal, socket: WebSocket, bidirectional: boolean
addonTerminal.__getMessage = function(ev: MessageEvent): void {
let str: string;
if (ev.data instanceof ArrayBuffer) {
addonTerminal.writeUtf8(new Uint8Array(ev.data));
return;
}
if (typeof ev.data === 'object') {
if (!myTextDecoder) {
myTextDecoder = new TextDecoder();