Skip to content

Commit

Permalink
feat(element): new global window.SwiperElementRegisterParams method…
Browse files Browse the repository at this point in the history
… to register acceptable element props
  • Loading branch information
nolimits4web committed Feb 27, 2023
1 parent 18b1f2b commit fb63358
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/element/swiper-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,12 @@ const register = (injectStyles = true) => {
window.customElements.define('swiper-slide', SwiperSlide);
};

if (typeof window !== 'undefined') {
window.SwiperElementRegisterParams = (params) => {
paramsList.push(...params);
};
}

//BROWSER_REGISTER

//EXPORT

0 comments on commit fb63358

Please sign in to comment.