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';