mirror of
https://gitlab.com/RemixDev/deemix-webui.git
synced 2025-01-29 17:38:25 +00:00
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:
commit
389ba2ef0c
|
@ -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 + '/')
|
||||
|
|
Loading…
Reference in a new issue