mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-29 07:41:13 +00:00
Fix issue with env.ts
This commit is contained in:
parent
7cb650dbd3
commit
300a8467c8
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue