ily.li/assets/js/external_links.js

11 lines
322 B
JavaScript
Raw Normal View History

2020-04-23 18:07:39 +02:00
import feather from "feather-icons";
document.addEventListener('DOMContentLoaded', () => {
document.querySelectorAll('a[target="_blank"]').forEach(el => {
if (!el.classList.contains('no-icon')) {
el.innerHTML += `<i data-feather="external-link"></i>`;
}
2020-04-23 18:07:39 +02:00
});
feather.replace();
});