well-waterfall 1.2.6 → 1.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "well-waterfall",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "Create Swipers in Webflow with attributes",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.es.js",
package/src/index.ts CHANGED
@@ -100,7 +100,9 @@ function initConfig(el: HTMLElement, index: number) {
100
100
 
101
101
  // Initialize swiper
102
102
  const swiperEl = el.querySelector(".swiper");
103
+ if (debug) console.log("SWIPER: ", swiperEl);
103
104
  const slides = swiperEl?.querySelectorAll(".swiper-slide") || [];
105
+ if (debug) console.log("SWIPER SLIDES: ", slides);
104
106
  if (slides.length === 0) {
105
107
  console.warn(`Skipping "${name}": no .swiper-slide elements found.`);
106
108
  return;