Skip to content

Commit

Permalink
Merge pull request #2132 from mwanji/umd-template-update
Browse files Browse the repository at this point in the history
Update UMD template to work in an ES module context.
  • Loading branch information
dangrossman authored Jul 30, 2020
2 parents 6075b41 + 374040c commit 8495717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daterangepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
// Browser globals
root.daterangepicker = factory(root.moment, root.jQuery);
}
}(this, function(moment, $) {
}(typeof window !== 'undefined' ? window : this, function(moment, $) {
var DateRangePicker = function(element, options, cb) {

//default settings for options
Expand Down

0 comments on commit 8495717

Please sign in to comment.