Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ghousemohamed authored Jul 10, 2024
1 parent 40e79c7 commit b32f498
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions html/src/components/terminal/xterm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,16 +284,7 @@ export class Xterm {
overlayAddon.showOverlay('Reconnecting...');
refreshToken().then(connect);
} else {
const { terminal } = this;
const keyDispose = terminal.onKey(e => {
const event = e.domEvent;
if (event.key === 'Enter') {
keyDispose.dispose();
overlayAddon.showOverlay('Reconnecting...');
refreshToken().then(connect);
}
});
overlayAddon.showOverlay('Press ⏎ to Reconnect');
overlayAddon.showOverlay('The console session has ended. Please refresh the page to reconnect again.');
}
}

Expand Down

0 comments on commit b32f498

Please sign in to comment.