We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f309978 commit eec1be5Copy full SHA for eec1be5
lib/web/mage/gallery/gallery.js
@@ -120,6 +120,14 @@ define([
120
config.options.swipe = true;
121
this.config = config;
122
123
+ // Check for multiple instances of jQuery
124
+ if (typeof jQuery !== 'undefined' && jQuery !== $ && typeof $.fn.fotorama === 'undefined') {
125
+ // Try to use the global jQuery instance
126
+ if (typeof window.jQuery !== 'undefined') {
127
+ $ = jQuery.noConflict();
128
+ }
129
130
+
131
this.settings = {
132
$element: $(element),
133
$pageWrapper: $('.page-wrapper'),
0 commit comments