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(() => {
|
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>
|
||||||
|
|
Loading…
Reference in a new issue