Skip to content

Commit

Permalink
process.versions is null when the library is used in browser
Browse files Browse the repository at this point in the history
  • Loading branch information
enecciari committed Mar 10, 2020
1 parent 3180498 commit a6f7ac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/fileSystem.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
exports.require = function() {
var fs = require("fs");
if (process.versions['electron']) {
if (process.versione && process.versions['electron']) {
try {
originalFs = require("original-fs");
if (Object.keys(originalFs).length > 0) {
Expand Down

0 comments on commit a6f7ac2

Please sign in to comment.