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]);
|
}, [sidebarOpen, setSidebarOpen, isAbsolute]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!window.sp) {
|
if (!window.Optanon) {
|
||||||
const gdprDiv = document.getElementById('gdprPrivacyFooter');
|
const gdprDiv = document.getElementById('gdprPrivacyFooter');
|
||||||
if (gdprDiv) {
|
if (gdprDiv) {
|
||||||
gdprDiv.style.display = 'none';
|
gdprDiv.style.display = 'none';
|
||||||
|
@ -380,7 +380,7 @@ function SideNavigation(props: Props) {
|
||||||
<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="gdprPrivacyFooter">
|
||||||
<Button label={__('Cookies')} onClick={() => window.sp && window.sp.showPrivacyBanner()} />
|
<Button label={__('Cookie Settings')} onClick={() => window.Optanon && window.Optanon.ToggleInfoDisplay()} />
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
);
|
);
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { SIMPLE_SITE } from 'config';
|
||||||
|
|
||||||
export default function Footer() {
|
export default function Footer() {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!window.sp) {
|
if (!window.Optanon) {
|
||||||
const privacyFooterButton = document.getElementById('gdprPrivacyFooter');
|
const privacyFooterButton = document.getElementById('gdprPrivacyFooter');
|
||||||
if (privacyFooterButton) privacyFooterButton.style.display = 'none';
|
if (privacyFooterButton) privacyFooterButton.style.display = 'none';
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ export default function Footer() {
|
||||||
<Button label={__('Privacy Policy')} href="https://odysee.com/$/privacypolicy" />
|
<Button label={__('Privacy Policy')} href="https://odysee.com/$/privacypolicy" />
|
||||||
</li>
|
</li>
|
||||||
<li className="footer__link" id="gdprPrivacyFooter">
|
<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>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
Loading…
Reference in a new issue