Skip to content

Commit

Permalink
feat(version): release 0.24.6 version
Browse files Browse the repository at this point in the history
  • Loading branch information
gokhangunduz committed Dec 20, 2023
1 parent e6b91ee commit 47a4b25
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<img src="https://img.shields.io/badge/nodejs-18.18.2-dgreen" alt="node">
</a>
<a href="https://github.com/robolaunch/ui/releases">
<img src="https://img.shields.io/badge/release-v0.24.5-red" alt="release">
<img src="https://img.shields.io/badge/release-v0.24.6-red" alt="release">
</a>
<a href="#">
<img src="https://img.shields.io/badge/language-typescript-blue" alt="language">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ui",
"version": "0.24.5",
"version": "0.24.6",
"private": true,
"scripts": {
"dev": "react-scripts start",
Expand Down
8 changes: 6 additions & 2 deletions src/contexts/RobotContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,15 @@ export default ({ children }: any) => {
: null;

vdiClient?.addEventListener("open", () => {
setIsVDIConnected(true);
isVDIConnected === null && setIsVDIConnected(true);
});

vdiClient?.addEventListener("error", () => {
setIsVDIConnected(false);
isVDIConnected === null && setIsVDIConnected(false);
});

vdiClient?.addEventListener("close", () => {
isVDIConnected === null && setIsVDIConnected(false);
});

typeof isVDIConnected === "boolean" && vdiClient?.close();
Expand Down

0 comments on commit 47a4b25

Please sign in to comment.