fix endpoint
This commit is contained in:
parent
6493de4a5b
commit
24d59b84e8
|
@ -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}`;
|
||||||
|
|
Loading…
Reference in New Issue