From 9501bf7270e1190b856f98db295e3ac25ec51e16 Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Tue, 31 Jul 2018 12:19:27 -0700 Subject: [PATCH] colon in wss url breaks edge when port is not explicit --- app/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api.js b/app/api.js index b47ee84e..3d394c46 100644 --- a/app/api.js +++ b/app/api.js @@ -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);