diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/src/config.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/src/config.js b/src/web/src/config.js index 3ffd4107..7164e594 100644 --- a/src/web/src/config.js +++ b/src/web/src/config.js @@ -1,4 +1,4 @@ -const rootUrl = process.env.NODE_ENV === 'production' ? window.location.href : 'http://localhost:5000/'; +const rootUrl = process.env.NODE_ENV === 'production' ? window.location.href.split('/')[1] : 'http://localhost:5000/'; const baseUrl = `${rootUrl}api/v0`; const tokenKey = 'slskd-token'; const tokenPassthroughValue = 'n/a'; |
