]> Untitled Git - lemmy-ui.git/commitdiff
Fix issue with env.ts
authorDessalines <tyhou13@gmx.com>
Wed, 14 Oct 2020 19:37:25 +0000 (14:37 -0500)
committerDessalines <tyhou13@gmx.com>
Wed, 14 Oct 2020 19:37:25 +0000 (14:37 -0500)
src/shared/env.ts

index b4aae603998066300db79c8190c6d6c5182de8d1..184fddcf05251a89bf070753946299b8d71caf08 100644 (file)
@@ -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;