mirror of
https://github.com/adminkit/adminkit.git
synced 2026-03-31 19:57:44 +01:00
Add error catching to feather icons
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user