mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-07 22:50:53 +03:00
colon in wss url breaks edge when port is not explicit
This commit is contained in:
@@ -135,7 +135,7 @@ async function upload(stream, metadata, verifierB64, onprogress, canceller) {
|
|||||||
const endpoint =
|
const endpoint =
|
||||||
window.location.protocol === 'file:'
|
window.location.protocol === 'file:'
|
||||||
? 'wss://send2.dev.lcip.org/api/ws'
|
? 'wss://send2.dev.lcip.org/api/ws'
|
||||||
: `${protocol}//${host}:${port}/api/ws`;
|
: `${protocol}//${host}${port ? ':' : ''}${port}/api/ws`;
|
||||||
|
|
||||||
const ws = await asyncInitWebSocket(endpoint);
|
const ws = await asyncInitWebSocket(endpoint);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user