diff --git a/lib/utils/index.js b/lib/utils/index.js index 5f1f857b..d49f8c5e 100644 --- a/lib/utils/index.js +++ b/lib/utils/index.js @@ -21,7 +21,7 @@ var utils = (module.exports = { var p = module.parent; while (p) { // in electron.js engine it happens - if (p.filename === undefined) { + if (!p.filename) { return true; } if (p.filename.indexOf('bin' + path.sep + 'nodemon.js') !== -1) {