Skip to content

Commit

Permalink
Fix socket connection
Browse files Browse the repository at this point in the history
  • Loading branch information
metalmon committed Dec 23, 2024
1 parent 4b7810f commit a7b8ef3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ const log = {

export function initSocket() {
let host = window.location.hostname
let siteName = window.site_name
let port = window.location.port ? `:${socketio_port}` : ''
let protocol = port ? 'http' : 'https'
let url = `${protocol}://${host}${port}/${siteName}`
let url = `${protocol}://${host}${port}`

log.info('Initializing socket connection to:', url)

Expand Down

0 comments on commit a7b8ef3

Please sign in to comment.