Explorar o código

ensure base url works for websockets

Blake Blackshear %!s(int64=4) %!d(string=hai) anos
pai
achega
b2a2fe898c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 || ''}`;