Skip to content

Commit

Permalink
fix(terminal) avoid prompt on navigation away from terminal, when ter…
Browse files Browse the repository at this point in the history
…minal websocket is closed

Signed-off-by: David Edler <[email protected]>
  • Loading branch information
edlerd committed Jan 17, 2024
1 parent 629ae88 commit 73f6b79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/instances/InstanceTerminal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ const InstanceTerminal: FC<Props> = ({ instance }) => {
);
}
setDataWs(null);
setUserInteracted(false);
};

data.binaryType = "arraybuffer";
Expand Down
1 change: 1 addition & 0 deletions src/pages/instances/InstanceTextConsole.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const InstanceTextConsole: FC<Props> = ({
onFailure("Error", event.reason, getWsErrorMsg(event.code));
}
setDataWs(null);
setUserInteracted(false);
};

data.binaryType = "arraybuffer";
Expand Down

0 comments on commit 73f6b79

Please sign in to comment.