From a1c70b776b5fd7e638fedccf5bed4ec9546aba5f Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Wed, 23 Oct 2024 22:20:44 -0400 Subject: [PATCH] Remove the check for localhost. --- chat-app/frontend/websocket.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/chat-app/frontend/websocket.js b/chat-app/frontend/websocket.js index 0db784c..22318b1 100644 --- a/chat-app/frontend/websocket.js +++ b/chat-app/frontend/websocket.js @@ -1,11 +1,6 @@ export function createWebSocket() { let appUrl = process.env.APP_URL; - - if (appUrl.includes('localhost')) { - appUrl = `//${appUrl}/chat-service`; - } else { - appUrl = `//${appUrl}/chat-service`; - } + appUrl = `//${appUrl}/chat-service`; return new WebSocket(appUrl); }