mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-14 19:01:05 -04:00
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:
committed by
GitHub
parent
7e9aed8327
commit
567de3bedb
@@ -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`} />
|
||||
|
||||
Reference in New Issue
Block a user