mirror of https://github.com/LemmyNet/lemmy-ui.git
Fix httpBase adding a : . Fixes #56
This commit is contained in:
parent
52b5d32fde
commit
ecb54ed43d
|
@ -4,9 +4,9 @@ const testHost = 'localhost:8536';
|
||||||
|
|
||||||
const internalHost = process.env.LEMMY_INTERNAL_HOST || testHost; // used for local dev
|
const internalHost = process.env.LEMMY_INTERNAL_HOST || testHost; // used for local dev
|
||||||
export const externalHost = isBrowser()
|
export const externalHost = isBrowser()
|
||||||
? `${window.location.hostname}:${
|
? `${window.location.hostname}${
|
||||||
window.location.port == '1234' || window.location.port == '1235'
|
['1234', '1235'].includes(window.location.port)
|
||||||
? 8536
|
? ':8536'
|
||||||
: window.location.port
|
: window.location.port
|
||||||
}`
|
}`
|
||||||
: process.env.LEMMY_EXTERNAL_HOST || testHost;
|
: process.env.LEMMY_EXTERNAL_HOST || testHost;
|
||||||
|
|
Loading…
Reference in New Issue