This commit is contained in:
overcuriousity
2025-08-13 15:27:14 +02:00
parent e93f394263
commit c4c52f6064
8 changed files with 3 additions and 39 deletions

View File

@@ -180,7 +180,6 @@ export const POST: APIRoute = async ({ request }) => {
return apiSpecial.invalidJSON();
}
// Preprocess form data to handle autocomplete inputs
body = preprocessFormData(body);
const sanitizedBody = sanitizeInput(body);

View File

@@ -588,10 +588,8 @@ const currentUrl = Astro.url.href;
});
}
// Make generateTOCContent available globally for the auth check script
window.generateTOCContent = generateTOCContent;
// Initialize everything on page load
document.addEventListener('DOMContentLoaded', () => {
calculateReadingTime();
generateSidebarTOC();