From: Dessalines Date: Tue, 9 Apr 2019 14:46:44 +0000 (-0700) Subject: Fixing endpoint. X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%7B%7D/static/%7Bsrc%7D?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`;