Skip to content

Commit

Permalink
Correct fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Dec 22, 2017
1 parent 6413bfa commit 7ae5767
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/swiper.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ const components = [
//INSTALL_COMPONENTS
];

if (typeof Swiper.use !== 'undefined') Swiper.use(components);
else Swiper.Class.use(components);
if (typeof Swiper.use === 'undefined') {
Swiper.use = Swiper.Class.use;
Swiper.installModule = Swiper.Class.installModule;
}

Swiper.use(components);

//EXPORT

0 comments on commit 7ae5767

Please sign in to comment.