lemmy/ui/src/env.ts
2019-04-06 16:48:54 -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';