]> prime8.dev >> repos - ttyd.git/commitdiff
html: Initialize doReconnect to false when specified by client options
authorKevin Lin <developer@kevinlin.info>
Sat, 3 Sep 2022 20:06:01 +0000 (13:06 -0700)
committerShuanglei Tao <tsl0922@gmail.com>
Tue, 18 Oct 2022 15:30:36 +0000 (23:30 +0800)
html/src/components/terminal/index.tsx

index 219cf207953113bbc306e95e0d07c7d5f41563cb..26c35d4b880579dd90d537be1cf9941dee50405f 100644 (file)
@@ -274,6 +274,7 @@ export class Xterm extends Component<Props> {
                     if (value) {
                         console.log(`[ttyd] Reconnect disabled`);
                         this.reconnect = false;
+                        this.doReconnect = false;
                     }
                     break;
                 case 'titleFixed':