mirror of
https://github.com/Eugeny/tabby
synced 2024-12-13 23:02:41 +00:00
Update baseTerminalTab.component.ts
This commit is contained in:
parent
eadd8d563e
commit
be0aeefdb3
1 changed files with 4 additions and 4 deletions
|
@ -315,12 +315,12 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
|
||||||
|
|
||||||
setImmediate(async () => {
|
setImmediate(async () => {
|
||||||
if (this.hasFocus) {
|
if (this.hasFocus) {
|
||||||
await this.frontend!.attach(this.content.nativeElement)
|
await this.frontend?.attach(this.content.nativeElement)
|
||||||
this.frontend!.configure()
|
this.frontend?.configure()
|
||||||
} else {
|
} else {
|
||||||
this.focused$.pipe(first()).subscribe(async () => {
|
this.focused$.pipe(first()).subscribe(async () => {
|
||||||
await this.frontend!.attach(this.content.nativeElement)
|
await this.frontend?.attach(this.content.nativeElement)
|
||||||
this.frontend!.configure()
|
this.frontend?.configure()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue