We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bb97af commit af5aef0Copy full SHA for af5aef0
lib/util.js
@@ -108,7 +108,7 @@ var util = module.exports = forge.util = forge.util || {};
108
109
// check if running under Node.js
110
util.isNodejs =
111
- typeof process !== 'undefined' && process.versions && process.versions.node;
+ typeof process !== 'undefined' && process.versions && process.versions.node && !(process.versions['electron'] && process.type === 'renderer');
112
113
114
// 'self' will also work in Web Workers (instance of WorkerGlobalScope) while
0 commit comments