feat: hide privacy banner for embedded form (#954)

This commit is contained in:
Zainab Amir
2023-06-22 15:14:18 +05:00
committed by GitHub
parent fa3a70e9a9
commit f63d7674e2

View File

@@ -9,6 +9,18 @@
crossorigin="anonymous"
referrerpolicy="no-referrer">
</script>
<script>
setTimeout(function() {
const currentPath = window.location.pathname;
if (currentPath === '/register-embedded') {
const privacyBannerElement = document.querySelector('.cc-grower');
if (privacyBannerElement) {
// Hide the privacy banner element for embedded authn experience
privacyBannerElement.classList.add('d-none');
}
}
}, 1500);
</script>
</head>
<body>
<div id="root"></div>