Update baseTerminalTab.component.ts

This commit is contained in:
Eugene Pankov 2021-08-06 09:52:37 +02:00
parent eadd8d563e
commit be0aeefdb3
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4

View file

@ -315,12 +315,12 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
setImmediate(async () => {
if (this.hasFocus) {
await this.frontend!.attach(this.content.nativeElement)
this.frontend!.configure()
await this.frontend?.attach(this.content.nativeElement)
this.frontend?.configure()
} else {
this.focused$.pipe(first()).subscribe(async () => {
await this.frontend!.attach(this.content.nativeElement)
this.frontend!.configure()
await this.frontend?.attach(this.content.nativeElement)
this.frontend?.configure()
})
}
})