소스 검색

ensure base url works for websockets

Blake Blackshear 4 년 전
부모
커밋
b2a2fe898c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      web/src/api/baseUrl.js

+ 1 - 1
web/src/api/baseUrl.js

@@ -1,2 +1,2 @@
 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 || ''}`;