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 New Issue
Block a user