update.eternae.ink/assets/js/external_links.js

9 lines
259 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 => {
el.innerHTML += `<i data-feather="external-link"></i>`;
});
feather.replace();
});