fix(webterminal): data

pull/123/head
liuzheng712 2016-03-04 20:30:58 +08:00
parent f7eda41a54
commit 20b5facc38
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ function openTerminal(options) {
term.write('Connection Reset By Peer'); term.write('Connection Reset By Peer');
}; };
sock.onmessage= function (data) { sock.onmessage= function (data) {
term.write(data.data.data); term.write(JSON.parse(data.data)['data']);
}; };
sock.onerror= function () { sock.onerror= function () {
term.write('Connection Reset By Peer'); term.write('Connection Reset By Peer');