From: Dessalines Date: Wed, 14 Oct 2020 19:37:25 +0000 (-0500) Subject: Fix issue with env.ts X-Git-Url: http://these/git/%7B%60%24%7BghostArchiveUrl%7D/static/readmes/README.ja.md?a=commitdiff_plain;h=300a8467c820fd24cd317be482856727e7279d2a;p=lemmy-ui.git Fix issue with env.ts --- diff --git a/src/shared/env.ts b/src/shared/env.ts index b4aae60..184fddc 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;