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/dist/index.es.js +439 -437
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -0
package/package.json
CHANGED
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;
|