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)) {