Safety backup before Path A fixes - fixing function mismatches and missing functions
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { showToast } from "./toast";
|
||||
import { Alpine } from "./alpine";
|
||||
|
||||
async function loadAnalytics(): Promise<void> {
|
||||
const token = localStorage.getItem("token");
|
||||
@@ -124,3 +125,7 @@ function renderPopularBooks(popular: PopularBooksResponse): void {
|
||||
document.addEventListener("DOMContentLoaded", loadAnalytics);
|
||||
|
||||
export { loadAnalytics };
|
||||
|
||||
Alpine.store("analytics", {
|
||||
loadAnalytics,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user