Allow links that are target=_blank to opt-out from the icon
This commit is contained in:
parent
3598f68183
commit
c68d5819b1
@ -2,7 +2,9 @@ import feather from "feather-icons";
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
document.querySelectorAll('a[target="_blank"]').forEach(el => {
|
||||
el.innerHTML += `<i data-feather="external-link"></i>`;
|
||||
if (!el.classList.contains('no-icon')) {
|
||||
el.innerHTML += `<i data-feather="external-link"></i>`;
|
||||
}
|
||||
});
|
||||
|
||||
feather.replace();
|
||||
|
Loading…
Reference in New Issue
Block a user