]> Untitled Git - lemmy.git/commitdiff
Fixing endpoint.
authorDessalines <tyhou13@gmx.com>
Tue, 9 Apr 2019 14:46:44 +0000 (07:46 -0700)
committerDessalines <tyhou13@gmx.com>
Tue, 9 Apr 2019 14:46:44 +0000 (07:46 -0700)
ui/src/env.ts

index 954d835fabfdcdabc1bf3ba8e71cd01a651b381d..03594bc68626291d3f8504b45f99141cf41844f7 100644 (file)
@@ -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`;