diff --git a/static/js/record.js b/static/js/record.js index ddcb15755..8d73dde3d 100644 --- a/static/js/record.js +++ b/static/js/record.js @@ -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]]); } diff --git a/templates/jlog/log_online.html b/templates/jlog/log_online.html index e40098685..290612c43 100644 --- a/templates/jlog/log_online.html +++ b/templates/jlog/log_online.html @@ -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); }