From: Dessalines Date: Tue, 15 Sep 2020 17:54:10 +0000 (-0500) Subject: Fix pictrs fetch url to use https X-Git-Url: http://these/git/readmes/%24%7B%60data:application/static/%7BpictshareAvatarThumbnail%28?a=commitdiff_plain;h=538965cad07d3c64319dc472949d342b85ab68b4;p=lemmy-ui.git Fix pictrs fetch url to use https --- diff --git a/src/shared/env.ts b/src/shared/env.ts index 073e8e5..0490e2c 100644 --- a/src/shared/env.ts +++ b/src/shared/env.ts @@ -24,7 +24,7 @@ const host = isBrowser() ? externalHost : internalHost; 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`; +export const pictrsUri = `http${secure}://${host}/pictrs/image`; console.log(`httpbase: ${httpBase}`); console.log(`wsUri: ${wsUri}`);