From acce4183f9d203af4dc9f025ddc7f445eb20c73b Mon Sep 17 00:00:00 2001 From: Beniamin Sinca Date: Thu, 2 May 2024 16:36:20 +0100 Subject: [PATCH] Update front-end-logger.phtml Fix bug --- view/frontend/templates/front-end-logger.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/frontend/templates/front-end-logger.phtml b/view/frontend/templates/front-end-logger.phtml index a179f88..c08680c 100644 --- a/view/frontend/templates/front-end-logger.phtml +++ b/view/frontend/templates/front-end-logger.phtml @@ -58,7 +58,7 @@ break; case 'SCRIPT': var src = event.target.src; - var extension = split('.').pop().toLowerCase(); + var extension = src.split('.').pop().toLowerCase(); var skipexts = ['jpg', 'jpeg', 'png', 'svg', 'webp']; if (skipexts.includes(extension)) {