diff --git a/NGSI.js b/NGSI.js index 679ffbc..49f1b52 100644 --- a/NGSI.js +++ b/NGSI.js @@ -53,7 +53,7 @@ /* Detect Node.js */ /* istanbul ignore if */ - if ((typeof require === 'function') && typeof exports != null) { + if ((typeof require === 'function') && (typeof exports !== 'undefined')) { NGSI = exports; var URL = require('whatwg-url').URL; } else {