mirror of
https://github.com/Eugeny/tabby.git
synced 2025-03-01 15:06:27 +08:00
lint
This commit is contained in:
parent
268af8806c
commit
b0973791a8
@ -84,7 +84,7 @@ export class SerialTabComponent extends BaseTerminalTabComponent<SerialProfile>
|
||||
this.attachSessionHandler(this.session!.destroyed$, () => {
|
||||
if (this.frontend) {
|
||||
// Session was closed abruptly
|
||||
if (this.config.store.terminal.behaviorOnSessionEnds == 'close') {
|
||||
if (this.config.store.terminal.behaviorOnSessionEnds === 'close') {
|
||||
// Close the tab
|
||||
this.destroy()
|
||||
} else if (this.config.store.terminal.behaviorOnSessionEnds.startsWith('reconnect-or-')) {
|
||||
|
@ -158,10 +158,9 @@ export class SSHTabComponent extends BaseTerminalTabComponent<SSHProfile> implem
|
||||
const session = this.session!
|
||||
this.attachSessionHandler(session.destroyed$, () => {
|
||||
if (this.frontend) {
|
||||
|
||||
this.write('\r\n' + colors.black.bgWhite(' SSH ') + ` ${this.sshSession?.profile.options.host}: session closed\r\n`)
|
||||
|
||||
if (this.config.store.terminal.behaviorOnSessionEnds == 'close') {
|
||||
if (this.config.store.terminal.behaviorOnSessionEnds === 'close') {
|
||||
// Close the tab
|
||||
this.destroy()
|
||||
} else if (this.config.store.terminal.behaviorOnSessionEnds.startsWith('reconnect-or-')) {
|
||||
|
@ -48,7 +48,7 @@ export class TelnetTabComponent extends BaseTerminalTabComponent<TelnetProfile>
|
||||
this.attachSessionHandler(session.destroyed$, () => {
|
||||
if (this.frontend) {
|
||||
// Session was closed abruptly
|
||||
if (this.config.store.terminal.behaviorOnSessionEnds == 'close') {
|
||||
if (this.config.store.terminal.behaviorOnSessionEnds === 'close') {
|
||||
// Close the tab
|
||||
this.destroy()
|
||||
} else if (this.config.store.terminal.behaviorOnSessionEnds.startsWith('reconnect-or-')) {
|
||||
|
Loading…
Reference in New Issue
Block a user