Fix Broken Select2 andDateRangePicker JS Plugins

This commit is contained in:
johnnyq
2023-10-21 22:59:00 -04:00
parent b34fd85ad4
commit 7b94e29aa4
4 changed files with 6 additions and 8 deletions

View File

@@ -19,12 +19,10 @@
//isomorphic issue
var jQuery = (typeof window != 'undefined') ? window.jQuery : undefined;
if (!jQuery) {
jQuery = require 'jquery';
jQuery = require('jquery');
if (!jQuery.fn) jQuery.fn = {};
}
var moment = (typeof window != 'undefined' && typeof window.moment != 'undefined') ? window.moment : require 'moment';
var moment = (typeof window != 'undefined' && typeof window.moment != 'undefined') ? window.moment : require('moment');
module.exports = factory(moment, jQuery);
} else {
// Browser globals