mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-18 06:48:09 +00:00
Update web-console.component.ts
This commit is contained in:
@ -35,7 +35,6 @@ export class WebConsoleComponent implements OnInit, AfterViewInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngAfterViewInit() {
|
ngAfterViewInit() {
|
||||||
setTimeout(() => {
|
|
||||||
this.term.open(this.terminal.nativeElement);
|
this.term.open(this.terminal.nativeElement);
|
||||||
const socket = new WebSocket(this.getUrl());
|
const socket = new WebSocket(this.getUrl());
|
||||||
|
|
||||||
@ -52,9 +51,7 @@ export class WebConsoleComponent implements OnInit, AfterViewInit {
|
|||||||
|
|
||||||
this.term.loadAddon(this.fitAddon);
|
this.term.loadAddon(this.fitAddon);
|
||||||
this.fitAddon.activate(this.term);
|
this.fitAddon.activate(this.term);
|
||||||
|
|
||||||
this.term.focus();
|
this.term.focus();
|
||||||
}, 1000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getUrl() {
|
getUrl() {
|
||||||
|
Reference in New Issue
Block a user