Skip to content

Commit 4d070e9

Browse files
committed
Changes CommonJS detection logic
1 parent 69d8b53 commit 4d070e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.fullPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
define(['jquery'], function($) {
1212
return factory($, global, global.document, global.Math);
1313
});
14-
} else if (typeof exports !== 'undefined') {
14+
} else if (typeof exports === "object" && exports) {
1515
module.exports = factory(require('jquery'), global, global.document, global.Math);
1616
} else {
1717
factory(jQuery, global, global.document, global.Math);

0 commit comments

Comments
 (0)