From b2a2fe898c12402a231767c5de5e53554a862f19 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Sun, 21 Feb 2021 09:29:32 -0600 Subject: [PATCH] ensure base url works for websockets --- web/src/api/baseUrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/api/baseUrl.js b/web/src/api/baseUrl.js index dc2303d87..96559c9a8 100644 --- a/web/src/api/baseUrl.js +++ b/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 || ''}`;