Add error catching to feather icons

This commit is contained in:
Paul Laros
2023-06-08 22:49:40 +02:00
parent 89a8e79f97
commit de64adc1ce
+6
View File
@@ -2,7 +2,13 @@
import feather from "feather-icons";
document.addEventListener("DOMContentLoaded", () => {
try {
feather.replace();
}
catch(e) {
console.log('You might have made a typo with one of the feather icons');
console.log(e);
}
});
window.feather = feather;