fix endpoint

This commit is contained in:
Dessalines 2019-04-09 17:55:43 -07:00
parent 6493de4a5b
commit 24d59b84e8
1 changed files with 3 additions and 1 deletions

View File

@ -1 +1,3 @@
export const endpoint = window.location.origin;
let host = `${window.location.hostname}`;
let port = `${window.location.port == "4444" ? '8080' : window.location.port}`;
export let endpoint = `${window.location.protocol}//${host}:${port}`;