fixed up some styling issues

This commit is contained in:
ari committed 2022-06-06 19:40:20 -04:00
1 parent d3fff074e5
commit 78494ee74d
3 files changed
+10 -6

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ import { useMockAPI } from "./mock";
const locationPrefixWeb = window.location.pathname.match(/(\/.+\/)web/i);
const baseURL = new URL(
process.env.NODE_ENV === 'development' ?
"http://localhost:8000" :
`http://${window.location.hostname}:8000` :
window.location.origin + (!locationPrefixWeb ? '' : locationPrefixWeb[1])
);
export const wsURL = baseURL + "socket"