From 3e4bfc99b8abc6a227ace0b9f44f4ce4174b14b7 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Thu, 15 Jun 2023 14:52:26 -0300 Subject: [PATCH] deleted function and changed button color --- .../components/chatComponent/buildTrigger/index.tsx | 2 +- src/frontend/src/modals/chatModal/index.tsx | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/frontend/src/components/chatComponent/buildTrigger/index.tsx b/src/frontend/src/components/chatComponent/buildTrigger/index.tsx index 024fa5e18..b45c834bf 100644 --- a/src/frontend/src/components/chatComponent/buildTrigger/index.tsx +++ b/src/frontend/src/components/chatComponent/buildTrigger/index.tsx @@ -136,7 +136,7 @@ export default function BuildTrigger({ >
{ handleBuild(flow); }} diff --git a/src/frontend/src/modals/chatModal/index.tsx b/src/frontend/src/modals/chatModal/index.tsx index 50f8ea35e..670e66202 100644 --- a/src/frontend/src/modals/chatModal/index.tsx +++ b/src/frontend/src/modals/chatModal/index.tsx @@ -185,17 +185,6 @@ export default function ChatModal({ }://${host}${chatEndpoint}`; } - function getWebSocketUrl(chatId, isDevelopment = false) { - const isSecureProtocol = window.location.protocol === "https:"; - const webSocketProtocol = isSecureProtocol ? "wss" : "ws"; - const host = isDevelopment ? "localhost:7860" : window.location.host; - const chatEndpoint = `/api/v1/chat/${chatId}`; - - return `${ - isDevelopment ? "ws" : webSocketProtocol - }://${host}${chatEndpoint}`; - } - function connectWS() { try { const urlWs = getWebSocketUrl(