Commit 630634e2 authored by liuzheng712's avatar liuzheng712 Committed by i317280

public

parent b56c78d9
......@@ -21,13 +21,15 @@ export class TermpageComponent implements OnInit {
this.activatedRoute.params.subscribe((params: Params) => {
token = params['token'];
});
let socket = io.connect();
let socket = io.connect('/ssh');
let term = new Terminal({
cols: '80',
rows: '24',
useStyle: true,
screenKeys: true,
});
term.open(document.getElementById('term' ), true);
socket.on('connect', function () {
socket.emit('token', token);
......@@ -60,7 +62,7 @@ export class TermpageComponent implements OnInit {
term.resize(col, row);
}
};
jQuery(window).resize();
// jQuery(window).resize();
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment