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 <irc@extralab.net>

* Fix typo url

---------

Co-authored-by: Nailuj2000 <irc@extralab.net>
This commit is contained in:
Reckless_Satoshi 2023-02-24 11:13:07 +00:00 committed by GitHub
parent 9c720abbf5
commit eb725331d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(() => {