From 7d09845b8c8a8a5ba9a5287609b9bb927d5c3744 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Wed, 22 Dec 2021 12:06:08 -0600 Subject: [PATCH] Remove unnecessary `window.requestAnimationFrame`. --- assets/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/app.js b/assets/js/app.js index afb2ef5..834d1de 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -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))