Remove unnecessary window.requestAnimationFrame.

This commit is contained in:
Nolan Darilek 2021-12-22 12:06:08 -06:00
parent ce1a1fdc5f
commit 7d09845b8c

View file

@ -199,7 +199,7 @@ window.addEventListener("phx:page-loading-start", info => topbar.show())
window.addEventListener("phx:page-loading-stop", info => topbar.hide())
// Accessible routing
window.addEventListener("phx:page-loading-stop", () => window.requestAnimationFrame(routeUpdated))
window.addEventListener("phx:page-loading-stop", routeUpdated)
window.addEventListener("js:exec", e => e.target[e.detail.call](...e.detail.args))