Skip to content

Commit

Permalink
Merge pull request midudev#906 from adrianmoralespalomar/main
Browse files Browse the repository at this point in the history
fix/Date not loading after redirecting to PrincipalDate page
  • Loading branch information
midudev authored Apr 16, 2024
2 parents feb3c0a + 6d06ed6 commit 36c710f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sections/PrincipalDate.astro
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ import MapMarkerIcon from "@/icons/map-marker.astro"
})
}

document.addEventListener("DOMContentLoaded", main)
document.addEventListener("astro:page-load", main)

// Verifica si el evento ya ha pasado
const eventHasPassed = EVENT_TIMESTAMP < Date.now()
Expand Down

0 comments on commit 36c710f

Please sign in to comment.