This repository has been archived on 2020-04-21. You can view files and clone it, but cannot push or open issues or pull requests.
lemmy/ui/src/env.ts

3 lines
165 B
TypeScript
Raw Normal View History

export const endpoint = `${window.location.hostname}:8536`;
2019-04-09 14:46:44 +00:00
export let wsUri = `${(window.location.protocol=='https:') ? 'wss://' : 'ws://'}${endpoint}/service/ws`;