Skip to content

Commit

Permalink
[Bugfix] Forgot to add the colon for https protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
lnfel committed Aug 4, 2023
1 parent abfddfa commit 9efe0d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/queue/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
const connectWebSocket = () => {
if (webSocketEstablished) return
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:'
const port = window.location.protocol === 'https' ? ':8080' : ''
const port = window.location.protocol === 'https:' ? ':8080' : ''
ws = new WebSocket(`${protocol}//${window.location.host}${port}/websocket`)
ws.addEventListener('open', (event) => {
webSocketEstablished = true
Expand Down

0 comments on commit 9efe0d1

Please sign in to comment.