mgw-react-dynamic-swiper
Version:
React wrapper for IDangerous Swiper that auto-magically updates slides, and reinitializes.
14 lines (10 loc) • 727 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var isBrowser = (typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object' && (typeof document === 'undefined' ? 'undefined' : _typeof(document)) === 'object' && (typeof navigator === 'undefined' ? 'undefined' : _typeof(navigator)) === 'object';
exports.default = function () {
if (isBrowser) return require('swiper');
return function Swiper() {};
}();