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}:8080`;
export let wsUri = (window.location.protocol=='https:') ? 'wss://' : 'ws://' + endpoint + '/service/ws';