Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Commit

Permalink
better check for module
Browse files Browse the repository at this point in the history
  • Loading branch information
scottjehl committed Oct 21, 2015
1 parent 813a795 commit 5b3c304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loadJS.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
return script;
};
// commonjs
if( module ){
if( typeof module !== "undefined" ){
module.exports = w.loadJS;
}
}( this ));

0 comments on commit 5b3c304

Please sign in to comment.