aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/config.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web/src/config.js b/src/web/src/config.js
index bd05aea5..3ffd4107 100644
--- a/src/web/src/config.js
+++ b/src/web/src/config.js
@@ -1,5 +1,5 @@
-const rootUrl = process.env.NODE_ENV === 'production' ? '' : 'http://localhost:5000';
-const baseUrl = `${rootUrl}/api/v0`;
+const rootUrl = process.env.NODE_ENV === 'production' ? window.location.href : 'http://localhost:5000/';
+const baseUrl = `${rootUrl}api/v0`;
const tokenKey = 'slskd-token';
const tokenPassthroughValue = 'n/a';
const activeChatKey = 'slskd-active-chat';