From eb725331d09dc4d3c3904c2b25895818d26454f2 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi <90936742+Reckless-Satoshi@users.noreply.github.com> Date: Fri, 24 Feb 2023 11:13:07 +0000 Subject: [PATCH] Fix bug on protocol (#368) * Update Main.tsx (#367) Change in line 155 old: setBaseUrl(`http://${host}`); new: setBaseUrl(`${location.protocol}://${host}`); Co-authored-by: Nailuj2000 * Fix typo url --------- Co-authored-by: Nailuj2000 --- frontend/src/basic/Main.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/basic/Main.tsx b/frontend/src/basic/Main.tsx index f29815e6..6cbea922 100644 --- a/frontend/src/basic/Main.tsx +++ b/frontend/src/basic/Main.tsx @@ -152,7 +152,7 @@ const Main = ({ torStatus, settings, setSettings }: MainProps): JSX.Element => { ? coordinators[0].mainnetOnion : coordinators[0].testnetOnion; } - setBaseUrl(`http://${host}`); + setBaseUrl(`${location.protocol}//${host}`); }, [settings.network]); useEffect(() => {