pull/195/head
liuzheng712 2016-04-05 13:05:07 +08:00
parent c76d9ebd88
commit 6518aa3670
2 changed files with 4 additions and 4 deletions

View File

@ -57,8 +57,8 @@ NgApp.controller('TerminalRecordCtrl', function ($scope, $http) {
for (; pos < timelist.length; pos++) {
if (timelist[pos] * 1000 <= time) {
try{
var findResize = JSON.parse(data[timelist[pos]])['reszie'];
term.resize(findResize['cols'], findResize['rows'])
var findResize = JSON.parse(data[timelist[pos]])['data'];
term.resize(findResize['resize']['cols'], findResize['resize']['rows'])
} catch (err) {
term.write(data[timelist[pos]]);
}

View File

@ -174,8 +174,8 @@
$('.terminal').show();
socket.onmessage = function(evt){
try {
var findResize = JSON.parse(evt.data)['resize'];
term.resize(findResize['cols'], findResize['rows'])
var findResize = JSON.parse(evt.data)['data'];
term.resize(findResize['resize']['cols'], findResize['resize']['rows'])
} catch (err) {
term.write(evt.data);
}