switch footer to onetrust
This commit is contained in:
parent
561bcbe545
commit
cafc3d676f
2 changed files with 4 additions and 4 deletions
|
@ -340,7 +340,7 @@ function SideNavigation(props: Props) {
|
|||
}, [sidebarOpen, setSidebarOpen, isAbsolute]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!window.sp) {
|
||||
if (!window.Optanon) {
|
||||
const gdprDiv = document.getElementById('gdprPrivacyFooter');
|
||||
if (gdprDiv) {
|
||||
gdprDiv.style.display = 'none';
|
||||
|
@ -380,7 +380,7 @@ function SideNavigation(props: Props) {
|
|||
<Button label={__('Privacy Policy')} href="https://odysee.com/$/privacypolicy" />
|
||||
</li>
|
||||
<li className="navigation-link" id="gdprPrivacyFooter">
|
||||
<Button label={__('Cookies')} onClick={() => window.sp && window.sp.showPrivacyBanner()} />
|
||||
<Button label={__('Cookie Settings')} onClick={() => window.Optanon && window.Optanon.ToggleInfoDisplay()} />
|
||||
</li>
|
||||
</ul>
|
||||
);
|
||||
|
|
|
@ -4,7 +4,7 @@ import { SIMPLE_SITE } from 'config';
|
|||
|
||||
export default function Footer() {
|
||||
useEffect(() => {
|
||||
if (!window.sp) {
|
||||
if (!window.Optanon) {
|
||||
const privacyFooterButton = document.getElementById('gdprPrivacyFooter');
|
||||
if (privacyFooterButton) privacyFooterButton.style.display = 'none';
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ export default function Footer() {
|
|||
<Button label={__('Privacy Policy')} href="https://odysee.com/$/privacypolicy" />
|
||||
</li>
|
||||
<li className="footer__link" id="gdprPrivacyFooter">
|
||||
<Button label={__('Cookies')} onClick={() => window.sp && window.sp.showPrivacyBanner()} />
|
||||
<Button label={__('Cookie Settings')} onClick={() => window.Optanon && window.Optanon.ToggleInfoDisplay()()} />
|
||||
</li>
|
||||
</ul>
|
||||
</footer>
|
||||
|
|
Loading…
Reference in a new issue