From 69f93c70081c946e02484b9f69a0ed416191ad6e Mon Sep 17 00:00:00 2001 From: zeppi Date: Thu, 29 Jul 2021 12:11:49 -0400 Subject: [PATCH] bugfix --- ui/index.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/index.jsx b/ui/index.jsx index 5eae12fe8..9b39b6ed7 100644 --- a/ui/index.jsx +++ b/ui/index.jsx @@ -72,7 +72,8 @@ let sdkAPIHost = process.env.SDK_API_HOST || process.env.SDK_API_URL; sdkAPIHost = LBRY_WEB_API; export const SDK_API_PATH = `${sdkAPIHost}/api/v1`; -const proxyURL = LBRY_WEB_PUBLISH_API || `${SDK_API_PATH}/proxy`; +const proxyURL = `${SDK_API_PATH}/proxy`; +const publishURL = LBRY_WEB_PUBLISH_API; // || `${SDK_API_PATH}/proxy`; Lbry.setDaemonConnectionString(proxyURL); @@ -82,7 +83,7 @@ Lbry.setOverride( new Promise((resolve, reject) => { apiPublishCallViaWeb( apiCall, - proxyURL, + publishURL, Lbry.getApiRequestHeaders() && Object.keys(Lbry.getApiRequestHeaders()).includes(X_LBRY_AUTH_TOKEN) ? Lbry.getApiRequestHeaders()[X_LBRY_AUTH_TOKEN] : '',