mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-23 12:51:18 +00:00
Fixing endpoint.
This commit is contained in:
parent
a705e81c0c
commit
85d16e8632
1 changed files with 3 additions and 1 deletions
|
@ -1,2 +1,4 @@
|
|||
export const endpoint = `${window.location.hostname}:8536`;
|
||||
let host = `${window.location.hostname}`;
|
||||
let port = `${window.location.port == "4444" ? '8536' : window.location.port}`;
|
||||
let endpoint = `${host}:${port}`;
|
||||
export let wsUri = `${(window.location.protocol=='https:') ? 'wss://' : 'ws://'}${endpoint}/service/ws`;
|
||||
|
|
Loading…
Reference in a new issue