Fixing endpoint.

This commit is contained in:
Dessalines 2019-04-09 08:03:58 -07:00
parent 0af9e08263
commit 8aa58e479e

View file

@ -1,2 +1,4 @@
export const endpoint = `${window.location.hostname}:8536`;
let host = `${window.location.hostname}`;
let port = `${window.location.port == "4444" ? '8536' : window.location.port}`;
let endpoint = `${host}:${port}`;
export let wsUri = `${(window.location.protocol=='https:') ? 'wss://' : 'ws://'}${endpoint}/service/ws`;