projects
/
lemmy-ui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7d0f27
)
Trying out ignoring secure for httpBase. #13
author
Dessalines
<tyhou13@gmx.com>
Tue, 15 Sep 2020 15:26:59 +0000
(10:26 -0500)
committer
Dessalines
<tyhou13@gmx.com>
Tue, 15 Sep 2020 15:26:59 +0000
(10:26 -0500)
src/shared/env.ts
patch
|
blob
|
history
diff --git
a/src/shared/env.ts
b/src/shared/env.ts
index 71a60710d54ae3cc1a9d25ac6c382edf0577d003..977528676f820f6af66b7caaa1f18e85ba731c53 100644
(file)
--- a/
src/shared/env.ts
+++ b/
src/shared/env.ts
@@
-21,7
+21,7
@@
const secure = isBrowser()
const host = isBrowser() ? externalHost : internalHost;
-const httpBase = `http
${secure}://${host}`;
+const httpBase = `http
://${host}`; // Don't use secure here
export const wsUri = `ws${secure}://${host}/api/v1/ws`;
export const httpUri = `${httpBase}/api/v1`;
export const pictrsUri = `${httpBase}/pictrs/image`;