mirror of
https://github.com/apophenia-news/apophenia.news.git
synced 2026-03-16 19:01:02 +00:00
Fix: Ensure Lucide icons render
This commit is contained in:
10
src/main.js
10
src/main.js
@@ -1,8 +1,14 @@
|
||||
import Alpine from "alpinejs";
|
||||
import { createIcons } from "lucide";
|
||||
import { createIcons, icons } from "lucide";
|
||||
import "./styles.css";
|
||||
|
||||
window.Alpine = Alpine;
|
||||
Alpine.start();
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => createIcons());
|
||||
const bootIcons = () => createIcons({ icons });
|
||||
|
||||
if (document.readyState === "loading") {
|
||||
document.addEventListener("DOMContentLoaded", bootIcons);
|
||||
} else {
|
||||
bootIcons();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user