cleanup
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user