aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/helpers/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/helpers/utils.ts')
-rw-r--r--client/src/app/helpers/utils.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/app/helpers/utils.ts b/client/src/app/helpers/utils.ts
index 9bf22f62f..8e9f72adb 100644
--- a/client/src/app/helpers/utils.ts
+++ b/client/src/app/helpers/utils.ts
@@ -36,7 +36,10 @@ function populateAsyncUserVideoChannels (authService: AuthService, channel: { id
36} 36}
37 37
38function getAbsoluteAPIUrl () { 38function getAbsoluteAPIUrl () {
39 let absoluteAPIUrl = environment.apiUrl 39 let absoluteAPIUrl = environment.hmr === true
40 ? 'http://localhost:9000'
41 : environment.apiUrl
42
40 if (!absoluteAPIUrl) { 43 if (!absoluteAPIUrl) {
41 // The API is on the same domain 44 // The API is on the same domain
42 absoluteAPIUrl = window.location.origin 45 absoluteAPIUrl = window.location.origin