From 2d87051b51585ce6996fb1e8bef6b40e9036f271 Mon Sep 17 00:00:00 2001 From: Stijn van Houwelingen Date: Sat, 20 Apr 2024 00:05:00 +0200 Subject: [PATCH] mend --- gallery-slider/assets/js/gallery-slider.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gallery-slider/assets/js/gallery-slider.js b/gallery-slider/assets/js/gallery-slider.js index de3006f..17f494b 100644 --- a/gallery-slider/assets/js/gallery-slider.js +++ b/gallery-slider/assets/js/gallery-slider.js @@ -29,11 +29,9 @@ } }); } - + window.onload = function() { - document.body.addEventListener("change", function(e) { - checkVisibility() - }); + checkVisibility() }; // gallery slider