Skip to content

Commit 8495717

Browse files
authored
Merge pull request #2132 from mwanji/umd-template-update
Update UMD template to work in an ES module context.
2 parents 6075b41 + 374040c commit 8495717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

daterangepicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
// Browser globals
2929
root.daterangepicker = factory(root.moment, root.jQuery);
3030
}
31-
}(this, function(moment, $) {
31+
}(typeof window !== 'undefined' ? window : this, function(moment, $) {
3232
var DateRangePicker = function(element, options, cb) {
3333

3434
//default settings for options

0 commit comments

Comments
 (0)