diff options
Diffstat (limited to 'frontend/src/api/socket.js')
| -rw-r--r-- | frontend/src/api/socket.js | 4 |
1 files changed, 1 insertions, 3 deletions
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) } |
