diff --git a/klasa.js b/klasa.js index 46addfc..a673cad 100644 --- a/klasa.js +++ b/klasa.js @@ -2608,7 +2608,7 @@ class IdmHotspot { ); // Opcje swipera - if (typeof this?.options?.swiper === "boolean") + if (this.options.swiper && typeof this?.options?.swiper === "boolean") this.options.swiper = this.getDefaultSwiperOptions(); // Wstawienie kontenera diff --git a/przyklady/extends.js b/przyklady/extends.js index aab4186..254475d 100644 --- a/przyklady/extends.js +++ b/przyklady/extends.js @@ -29,4 +29,10 @@ IdmHotspot = class extends IdmHotspot { return labelMarkup; } + + // Dodanie klasy do ramki rekomendacji + async afterInit() { + super.afterInit(); + if (this.hotspotEl) this.hotspotEl.classList.add("--presentation"); + } }; diff --git a/ramka.txt b/ramka.txt index 3c85e73..9f98c02 100644 --- a/ramka.txt +++ b/ramka.txt @@ -28,4 +28,6 @@ cacheowanie ramek do indexedD zapisywanie querySelectorów produktów?? -rozmiary i wersje - dropdown \ No newline at end of file +rozmiary i wersje - dropdown + +opcja zwracania HTML \ No newline at end of file