6 lines
142 B
JavaScript
6 lines
142 B
JavaScript
// Remove un-used alerts
|
|
document.querySelectorAll("[role=alert]").forEach(el => {
|
|
if(el.innerHTML.trim() === "")
|
|
el.remove();
|
|
})
|