(function(svg) {
svg.innerHTML = ``;
svg.style.display = 'none';
if (location.protocol === 'file:') {
if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', updateUseElements);
else updateUseElements()
function updateUseElements() {
document.querySelectorAll('use').forEach(el => {
if (el.getAttribute('href').includes('#icon-')) {
el.setAttribute('href', el.getAttribute('href').replace(/.*#/, '#'));
}
});
}
}
})(document.body.appendChild(document.createElementNS('http://www.w3.org/2000/svg', 'svg')))