mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-13 21:02:08 +08: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:
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`} />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user