From 538965cad07d3c64319dc472949d342b85ab68b4 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 15 Sep 2020 12:54:10 -0500 Subject: [PATCH] Fix pictrs fetch url to use https --- src/shared/env.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/env.ts b/src/shared/env.ts index 073e8e5a..0490e2c6 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}`);