mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-19 04:31:35 +00:00
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:
parent
9c720abbf5
commit
eb725331d0
@ -152,7 +152,7 @@ const Main = ({ torStatus, settings, setSettings }: MainProps): JSX.Element => {
|
|||||||
? coordinators[0].mainnetOnion
|
? coordinators[0].mainnetOnion
|
||||||
: coordinators[0].testnetOnion;
|
: coordinators[0].testnetOnion;
|
||||||
}
|
}
|
||||||
setBaseUrl(`http://${host}`);
|
setBaseUrl(`${location.protocol}//${host}`);
|
||||||
}, [settings.network]);
|
}, [settings.network]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user