From bae2b816ad8bf020ec0729099d06baa8af49f709 Mon Sep 17 00:00:00 2001 From: Kevin Lin Date: Sat, 3 Sep 2022 13:06:01 -0700 Subject: [PATCH] html: Initialize doReconnect to false when specified by client options --- html/src/components/terminal/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/html/src/components/terminal/index.tsx b/html/src/components/terminal/index.tsx index 219cf20..26c35d4 100644 --- a/html/src/components/terminal/index.tsx +++ b/html/src/components/terminal/index.tsx @@ -274,6 +274,7 @@ export class Xterm extends Component { if (value) { console.log(`[ttyd] Reconnect disabled`); this.reconnect = false; + this.doReconnect = false; } break; case 'titleFixed': -- 2.43.4