Fix loader not stopping

This commit is contained in:
cyclotruc 2025-01-05 07:44:47 +00:00
parent 5937b584fb
commit b7c435a0b4

View file

@ -83,7 +83,8 @@ function handleSubmit(event, showLoading = false) {
// Store the star count before updating the DOM
const starCount = currentStars;
// Replace the entire body content with the new HTML
document.body.innerHTML = html;
// Wait for next tick to ensure DOM is updated
setTimeout(() => {