Skip to content

Commit

Permalink
ensure base url works for websockets
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeblackshear committed Feb 21, 2021
1 parent 31d408a commit b2a2fe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/api/baseUrl.js
Original file line number Diff line number Diff line change
@@ -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 || ''}`;

0 comments on commit b2a2fe8

Please sign in to comment.