fix: update

parent cbc3393d
...@@ -16,12 +16,7 @@ import {TermWS} from '../../globals'; ...@@ -16,12 +16,7 @@ import {TermWS} from '../../globals';
// term: any; // term: any;
// } // }
export class Rdp {
machine: string;
token: string;
client: any;
iframe: any;
}
export class View { export class View {
nick: string; nick: string;
...@@ -33,7 +28,7 @@ export class View { ...@@ -33,7 +28,7 @@ export class View {
host: any; host: any;
user: any; user: any;
room: string; room: string;
Rdp: Rdp; Rdp: any;
Term: any; Term: any;
} }
......
...@@ -44,7 +44,7 @@ export class ControlnavComponent implements OnInit { ...@@ -44,7 +44,7 @@ export class ControlnavComponent implements OnInit {
if (NavList.List[index].type === 'ssh') { if (NavList.List[index].type === 'ssh') {
NavList.List[index].Term.focus(); NavList.List[index].Term.focus();
} else if (NavList.List[index].type === 'rdp') { } else if (NavList.List[index].type === 'rdp') {
NavList.List[index].Rdp.iframe.focus(); NavList.List[index].Rdp.focus();
} }
} else { } else {
......
...@@ -46,7 +46,7 @@ export class ElementGuacamoleComponent implements OnInit { ...@@ -46,7 +46,7 @@ export class ElementGuacamoleComponent implements OnInit {
} else { } else {
this.target = this._cookie.get('guacamole'); this.target = this._cookie.get('guacamole');
} }
NavList.List[this.index].Rdp.iframe = this.el.nativeElement; NavList.List[this.index].Rdp = this.el.nativeElement;
} }
trust(url) { trust(url) {
......
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