Skip to content

Commit

Permalink
Merge pull request #75 from shaqq/master
Browse files Browse the repository at this point in the history
stronger check on module
  • Loading branch information
rstacruz committed Apr 23, 2014
2 parents e97ac8b + ca9ce4d commit 09d0cd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nprogress.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

;(function(factory) {

if (typeof module === 'function') {
if (typeof module !== 'undefined' && module.exports) {
module.exports = factory();
} else if (typeof define === 'function' && define.amd) {
define(factory);
Expand Down

0 comments on commit 09d0cd7

Please sign in to comment.