fix: do not display breadcrumbs with iframe (#47989)

Signed-off-by: Prince Mendiratta <prince.mendi@gmail.com>

Signed-off-by: Prince Mendiratta <prince.mendi@gmail.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
This commit is contained in:
Prince Mendiratta
2022-10-12 16:06:01 +05:30
committed by GitHub
parent 7e9aed8327
commit 567de3bedb

View File

@@ -230,6 +230,9 @@ class ShowCodeAlly extends Component<ShowCodeAllyProps> {
challenge => challenge.id === challengeId
);
const breadcrumbs = document.querySelector('.breadcrumbs-demo');
showCodeAlly && breadcrumbs?.remove();
return showCodeAlly ? (
<LearnLayout>
<Helmet title={`${blockName}: ${title} | freeCodeCamp.org`} />