From 255e1a8ac190ffb14204028f05b42b1bb3d93334 Mon Sep 17 00:00:00 2001 From: Felipe Martin <812088+fmartingr@users.noreply.github.com> Date: Mon, 3 Mar 2025 17:24:24 +0100 Subject: [PATCH] [MM-63325, MM-63329] feat: dont register plugins or show the footer if MMEMBED cookie is set to `1` (#30393) * feat: no-op register plugin if MMEMBED=1 * feat: disable footer links when MMEMBED=1 --- .../channels/src/components/header_footer_route/footer.tsx | 5 +++++ webapp/channels/src/plugins/index.ts | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/webapp/channels/src/components/header_footer_route/footer.tsx b/webapp/channels/src/components/header_footer_route/footer.tsx index a593bd771df3..0a80335094dc 100644 --- a/webapp/channels/src/components/header_footer_route/footer.tsx +++ b/webapp/channels/src/components/header_footer_route/footer.tsx @@ -15,6 +15,11 @@ const Footer = () => { const {AboutLink, PrivacyPolicyLink, TermsOfServiceLink, HelpLink} = useSelector(getConfig); + // Check if MMEMBED cookie is set and if so, don't show the footer + if (document.cookie.includes('MMEMBED=1')) { + return null; + } + return (