Skip to content

Commit a6f7ac2

Browse files
committed
process.versions is null when the library is used in browser
1 parent 3180498 commit a6f7ac2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/fileSystem.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
exports.require = function() {
22
var fs = require("fs");
3-
if (process.versions['electron']) {
3+
if (process.versione && process.versions['electron']) {
44
try {
55
originalFs = require("original-fs");
66
if (Object.keys(originalFs).length > 0) {

0 commit comments

Comments
 (0)