diff --git a/tabby-ssh/src/polyfills.ts b/tabby-ssh/src/polyfills.ts index 8872290d..da48c261 100644 --- a/tabby-ssh/src/polyfills.ts +++ b/tabby-ssh/src/polyfills.ts @@ -1,4 +1,4 @@ -import 'ssh2'; +import 'ssh2' const nodeCrypto = require('crypto') const browserDH = require('diffie-hellman/browser') nodeCrypto.createDiffieHellmanGroup = browserDH.createDiffieHellmanGroup @@ -7,6 +7,6 @@ nodeCrypto.createDiffieHellman = browserDH.createDiffieHellman // Declare function missing from @types declare module 'ssh2' { interface Client { - setNoDelay(enable?: boolean): this; + setNoDelay(enable?: boolean): this } } \ No newline at end of file diff --git a/tabby-ssh/src/session/ssh.ts b/tabby-ssh/src/session/ssh.ts index bb1de94d..2ad99325 100644 --- a/tabby-ssh/src/session/ssh.ts +++ b/tabby-ssh/src/session/ssh.ts @@ -219,7 +219,7 @@ export class SSHSession { ssh.on('ready', () => { connected = true // Fix SSH Lagging - ssh.setNoDelay(true); + ssh.setNoDelay(true) if (this.savedPassword) { this.passwordStorage.savePassword(this.profile, this.savedPassword) }