Revert "lint"

This reverts commit b0973791a8.
This commit is contained in:
Clem 2023-04-22 14:36:14 +02:00
parent b0973791a8
commit 8cb75e14a2
3 changed files with 4 additions and 3 deletions

View file

@ -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-')) {

View file

@ -158,9 +158,10 @@ 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-')) {

View file

@ -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-')) {