sidebar ad hiding fixed
This commit is contained in:
parent
c011145029
commit
aef8e2eba7
1 changed files with 2 additions and 2 deletions
|
@ -341,7 +341,7 @@ function SideNavigation(props: Props) {
|
|||
|
||||
useEffect(() => {
|
||||
if (!window.Optanon) {
|
||||
const gdprDiv = document.getElementById('gdprPrivacyFooter');
|
||||
const gdprDiv = document.getElementById('gdprSidebarLink');
|
||||
if (gdprDiv) {
|
||||
gdprDiv.style.display = 'none';
|
||||
}
|
||||
|
@ -379,7 +379,7 @@ function SideNavigation(props: Props) {
|
|||
<li className="navigation-link">
|
||||
<Button label={__('Privacy Policy')} href="https://odysee.com/$/privacypolicy" />
|
||||
</li>
|
||||
<li className="navigation-link" id="gdprPrivacyFooter">
|
||||
<li className="navigation-link" id="gdprSidebarLink">
|
||||
<Button label={__('Cookie Settings')} onClick={() => window.Optanon && window.Optanon.ToggleInfoDisplay()} />
|
||||
</li>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in a new issue