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.addEventListener('DOMContentLoaded', () => {
|
||||||
document.querySelectorAll('a[target="_blank"]').forEach(el => {
|
document.querySelectorAll('a[target="_blank"]').forEach(el => {
|
||||||
|
if (!el.classList.contains('no-icon')) {
|
||||||
el.innerHTML += `<i data-feather="external-link"></i>`;
|
el.innerHTML += `<i data-feather="external-link"></i>`;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
feather.replace();
|
feather.replace();
|
||||||
|
Loading…
Reference in New Issue
Block a user