lemmy/ui/src/env.ts
2019-04-09 07:46:44 -07:00

2 lines
165 B
TypeScript

export const endpoint = `${window.location.hostname}:8536`;
export let wsUri = `${(window.location.protocol=='https:') ? 'wss://' : 'ws://'}${endpoint}/service/ws`;