]> Untitled Git - lemmy-ui.git/commitdiff
Trying out ignoring secure for httpBase. #13
authorDessalines <tyhou13@gmx.com>
Tue, 15 Sep 2020 15:26:59 +0000 (10:26 -0500)
committerDessalines <tyhou13@gmx.com>
Tue, 15 Sep 2020 15:26:59 +0000 (10:26 -0500)
src/shared/env.ts

index 71a60710d54ae3cc1a9d25ac6c382edf0577d003..977528676f820f6af66b7caaa1f18e85ba731c53 100644 (file)
@@ -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`;