From 10b9b7c5f1b938c3fed9d426c6a0fb88260b7351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20Hangst=C3=B6rfer?= Date: Tue, 2 Feb 2016 11:49:25 +0100 Subject: [PATCH] Properly checking for undefined on module Hotfix for issue #16 --- src/urlParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }