From 300a8467c820fd24cd317be482856727e7279d2a Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 14 Oct 2020 14:37:25 -0500 Subject: [PATCH] Fix issue with env.ts --- src/shared/env.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shared/env.ts b/src/shared/env.ts index b4aae603..184fddcf 100644 --- a/src/shared/env.ts +++ b/src/shared/env.ts @@ -7,7 +7,9 @@ export const externalHost = isBrowser() ? `${window.location.hostname}${ ['1234', '1235'].includes(window.location.port) ? ':8536' - : window.location.port + : window.location.port == '' + ? '' + : `:${window.location.port}` }` : process.env.LEMMY_EXTERNAL_HOST || testHost;