ensure base url works for websockets

This commit is contained in:
Blake Blackshear 2021-02-21 09:29:32 -06:00
parent 31d408a746
commit b2a2fe898c

View File

@ -1,2 +1,2 @@
import { API_HOST } from '../env'; import { API_HOST } from '../env';
export const baseUrl = API_HOST || window.baseUrl || `${window.location.protocol}//${window.location.host}`; export const baseUrl = API_HOST || `${window.location.protocol}//${window.location.host}${window.baseUrl || ''}`;