Skip to content

Commit

Permalink
Updated the code
Browse files Browse the repository at this point in the history
  • Loading branch information
teshukatepalli1 committed Dec 27, 2023
1 parent 9751da0 commit 4bc719e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/aem.js
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,15 @@ function decorateButtons(element) {
a.classList.add('normal-text');
}
}
} else {
const up = a.parentElement;
if (
up.childNodes.length === 1
&& up.tagName === 'STRONG'
) {
a.setAttribute('target', '_blank');
a.classList.add('text-normal');
}
}
});
}
Expand Down

0 comments on commit 4bc719e

Please sign in to comment.