Merge branch 'main' into 'main'

Fix error connecting to unsecure WebSocket when loading over HTTPS

Closes #2

See merge request RemixDev/deemix-webui!1
This commit is contained in:
Toninho 2021-07-19 08:49:35 +00:00
commit 389ba2ef0c
1 changed files with 1 additions and 1 deletions

View File

@ -34,4 +34,4 @@ class CustomSocket extends WebSocket {
} }
} }
export const socket = new CustomSocket('ws://' + location.host + '/') export const socket = new CustomSocket((location.protocol === 'https:' ? 'wss://' : 'ws://') + location.host + '/')