colon in wss url breaks edge when port is not explicit

This commit is contained in:
Danny Coates 2018-07-31 12:19:27 -07:00
parent 9bd96210e5
commit 9501bf7270
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ async function upload(stream, metadata, verifierB64, onprogress, canceller) {
const endpoint =
window.location.protocol === 'file:'
? 'wss://send2.dev.lcip.org/api/ws'
: `${protocol}//${host}:${port}/api/ws`;
: `${protocol}//${host}${port ? ':' : ''}${port}/api/ws`;
const ws = await asyncInitWebSocket(endpoint);