Fix issue with env.ts

This commit is contained in:
Dessalines 2020-10-14 14:37:25 -05:00
parent 7cb650dbd3
commit 300a8467c8

View file

@ -7,7 +7,9 @@ export const externalHost = isBrowser()
? `${window.location.hostname}${ ? `${window.location.hostname}${
['1234', '1235'].includes(window.location.port) ['1234', '1235'].includes(window.location.port)
? ':8536' ? ':8536'
: window.location.port : window.location.port == ''
? ''
: `:${window.location.port}`
}` }`
: process.env.LEMMY_EXTERNAL_HOST || testHost; : process.env.LEMMY_EXTERNAL_HOST || testHost;