Skip to content

Commit

Permalink
fix(rax-swiper): downgrade usage
Browse files Browse the repository at this point in the history
  • Loading branch information
linbudu599 committed Jul 18, 2023
1 parent f93b85b commit 9125d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rax-swiper/src/web/init-swiper.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'swiper/swiper-bundle.min.css';

// TODO: Support SSR in Swiper component of HyperKit
// A temporary solution to prevent swiper.js errors under SSR
document.documentElement.style ??= {};
document.documentElement.style = document.documentElement.style || {};

Swiper.use([Autoplay, Pagination]);
function initSwiper(swiperParams) {
Expand Down

0 comments on commit 9125d67

Please sign in to comment.