From f119fc78dda4d1e828dde04f378a63a93e3a0a7e Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Thu, 2 Jul 2020 18:39:28 +0200 Subject: Add current progress on frontend port --- frontend/src/api/socket.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'frontend/src/api/socket.js') diff --git a/frontend/src/api/socket.js b/frontend/src/api/socket.js index ce5f7587..93ce8fa8 100644 --- a/frontend/src/api/socket.js +++ b/frontend/src/api/socket.js @@ -10,9 +10,7 @@ export function setupSocketConnection(onConnect) { if (process.env.NODE_ENV !== 'production') { port = 8081 } - socket = io.connect( - window.location.protocol + '//' + window.location.hostname + ':' + port, - ) + socket = io.connect(window.location.protocol + '//' + window.location.hostname + ':' + port) socket.on('connect', onConnect) socket.on('response', onSocketResponse) } -- cgit v1.2.3