Skip to content

Commit

Permalink
Properly checking for undefined on module
Browse files Browse the repository at this point in the history
Hotfix for issue #16
  • Loading branch information
Zod- committed Feb 2, 2016
1 parent 969964d commit 10b9b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/urlParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ URLParser.prototype.create = function (op) {
};
var urlParser = new URLParser();

if (typeof module !== undefined && module.exports) {
if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
module.exports = urlParser;
}

0 comments on commit 10b9b7c

Please sign in to comment.