mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-05 12:05:01 +00:00
97e21f6fd9
- #305 , #309
6 lines
264 B
TypeScript
Vendored
6 lines
264 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`;
|