Skip to content

Commit

Permalink
Merge pull request #717 from chipbell4/master
Browse files Browse the repository at this point in the history
More robust check for testing existence of node process global
  • Loading branch information
obeliskos authored Nov 10, 2018
2 parents 7a050b6 + 4502126 commit 11e347e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lokijs.js
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@
return 'NODEJS';
}

if (typeof global !== 'undefined' && global.window && process) {
if (typeof global !== 'undefined' && global.window && typeof process !== 'undefined') {
return 'NODEJS'; //node-webkit
}

Expand Down

0 comments on commit 11e347e

Please sign in to comment.