sidebar ad hiding fixed

This commit is contained in:
Anthony 2021-12-13 21:23:31 +01:00 committed by Thomas Zarebczan
parent c011145029
commit aef8e2eba7

View file

@ -341,7 +341,7 @@ function SideNavigation(props: Props) {
useEffect(() => { useEffect(() => {
if (!window.Optanon) { if (!window.Optanon) {
const gdprDiv = document.getElementById('gdprPrivacyFooter'); const gdprDiv = document.getElementById('gdprSidebarLink');
if (gdprDiv) { if (gdprDiv) {
gdprDiv.style.display = 'none'; gdprDiv.style.display = 'none';
} }
@ -379,7 +379,7 @@ function SideNavigation(props: Props) {
<li className="navigation-link"> <li className="navigation-link">
<Button label={__('Privacy Policy')} href="https://odysee.com/$/privacypolicy" /> <Button label={__('Privacy Policy')} href="https://odysee.com/$/privacypolicy" />
</li> </li>
<li className="navigation-link" id="gdprPrivacyFooter"> <li className="navigation-link" id="gdprSidebarLink">
<Button label={__('Cookie Settings')} onClick={() => window.Optanon && window.Optanon.ToggleInfoDisplay()} /> <Button label={__('Cookie Settings')} onClick={() => window.Optanon && window.Optanon.ToggleInfoDisplay()} />
</li> </li>
</ul> </ul>