We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1da3bb7 commit 4aa6518Copy full SHA for 4aa6518
nprogress.js
@@ -1,17 +1,17 @@
1
/*! NProgress (c) 2013, Rico Sta. Cruz
2
* http://ricostacruz.com/nprogress */
3
4
-;(function(factory) {
+;(function(root, factory) {
5
6
- if (typeof module !== 'undefined' && module.exports) {
7
- module.exports = factory();
8
- } else if (typeof define === 'function' && define.amd) {
+ if (typeof define === 'function' && define.amd) {
9
define(factory);
+ } else if (typeof exports === 'object') {
+ module.exports = factory();
10
} else {
11
- this.NProgress = factory();
+ root.NProgress = factory();
12
}
13
14
-})(function() {
+})(this, function() {
15
var NProgress = {};
16
17
NProgress.version = '0.1.5';
0 commit comments