mirror of https://github.com/jumpserver/jumpserver
bugfix
parent
c76d9ebd88
commit
6518aa3670
|
@ -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]]);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue