From: Dessalines Date: Tue, 15 Sep 2020 15:26:59 +0000 (-0500) Subject: Trying out ignoring secure for httpBase. #13 X-Git-Url: http://these/git/%22%7Bauthor_url%7D/%7Bpost.ap_id%7D?a=commitdiff_plain;h=124219b2530e534d46e783d3089b7c5eb2540fe3;p=lemmy-ui.git Trying out ignoring secure for httpBase. #13 --- diff --git a/src/shared/env.ts b/src/shared/env.ts index 71a6071..9775286 100644 --- 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`;