mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-19 03:25:29 +00:00
5e1fcd318a
- Fixes #99.
5 lines
260 B
TypeScript
Vendored
5 lines
260 B
TypeScript
Vendored
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}/api/v1/ws`;
|