From 20b5facc38c1d1b9bea7ec0faced0579b2ba5c90 Mon Sep 17 00:00:00 2001 From: liuzheng712 Date: Fri, 4 Mar 2016 20:30:58 +0800 Subject: [PATCH] fix(webterminal): data --- static/js/webterminal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/webterminal.js b/static/js/webterminal.js index 8f855842f..3e576b4f8 100644 --- a/static/js/webterminal.js +++ b/static/js/webterminal.js @@ -85,7 +85,7 @@ function openTerminal(options) { term.write('Connection Reset By Peer'); }; sock.onmessage= function (data) { - term.write(data.data.data); + term.write(JSON.parse(data.data)['data']); }; sock.onerror= function () { term.write('Connection Reset By Peer');