From 5aca822e151b23e8fd0238ec05ead81a683db36c Mon Sep 17 00:00:00 2001
From: Matei Stanca <i@ambientimpact.com>
Date: Thu, 28 Nov 2024 10:05:48 -0500
Subject: [PATCH] Cleaned up some stuff in
 refreshless_turbo/js/progress_bar.js:

Mostly removed a commented out console.debug() and converted a handler
to arrow function.
---
 modules/refreshless_turbo/js/progress_bar.js | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/refreshless_turbo/js/progress_bar.js b/modules/refreshless_turbo/js/progress_bar.js
index 30ec5d9..deed8be 100644
--- a/modules/refreshless_turbo/js/progress_bar.js
+++ b/modules/refreshless_turbo/js/progress_bar.js
@@ -20,9 +20,7 @@
   // Note that this intentionally listens to the fetch request event rather than
   // turbo:click so that the progress bar also kicks in during back/forward
   // history navigation.
-  html.addEventListener('turbo:before-fetch-request', function(event) {
-
-    // console.debug(event.target);
+  html.addEventListener('turbo:before-fetch-request', (event) => {
 
     if (
       // Ignore prefetch requests.
-- 
GitLab