fixed up some styling issues
This commit is contained in:
1 parent
d3fff074e5
commit
78494ee74d
3 files changed
+10
-6
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user