mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
feat: header logo reloads at "/"
This commit is contained in:
parent
e6a044d8e1
commit
5b58a46ebd
1 changed files with 3 additions and 1 deletions
|
@ -133,7 +133,9 @@ const Header = (props: Props) => {
|
||||||
className="header__navigation-item header__navigation-item--lbry header__navigation-item--button-mobile"
|
className="header__navigation-item header__navigation-item--lbry header__navigation-item--button-mobile"
|
||||||
label={__('LBRY')}
|
label={__('LBRY')}
|
||||||
icon={ICONS.LBRY}
|
icon={ICONS.LBRY}
|
||||||
onClick={() => window.scrollTo(0, 0)}
|
onClick={() => {
|
||||||
|
if (history.location.pathname === '/') window.location.reload();
|
||||||
|
}}
|
||||||
{...homeButtonNavigationProps}
|
{...homeButtonNavigationProps}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue