diff --git a/src/urlParser.js b/src/urlParser.js index b94fe59..651078b 100644 --- a/src/urlParser.js +++ b/src/urlParser.js @@ -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; }