From: Dessalines Date: Tue, 9 Apr 2019 14:46:44 +0000 (-0700) Subject: Fixing endpoint. X-Git-Url: http://these/git/%24%7B%60data:application/static/git-logo.png?a=commitdiff_plain;h=0af9e08263e84c51b0267aeb03ffc7b441a15ab6;p=lemmy.git Fixing endpoint. --- diff --git a/ui/src/env.ts b/ui/src/env.ts index 954d835f..03594bc6 100644 --- a/ui/src/env.ts +++ b/ui/src/env.ts @@ -1,2 +1,2 @@ export const endpoint = `${window.location.hostname}:8536`; -export let wsUri = (window.location.protocol=='https:') ? 'wss://' : 'ws://' + endpoint + '/service/ws'; +export let wsUri = `${(window.location.protocol=='https:') ? 'wss://' : 'ws://'}${endpoint}/service/ws`;