From 80fdf57cbe2f89a4a8fa7306642d6c0e5af63800 Mon Sep 17 00:00:00 2001 From: Kia Rahimian Date: Wed, 22 Apr 2020 12:18:04 -0400 Subject: [PATCH] fix: fs shim when running on electron renderer process --- src/fs-shim.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/fs-shim.js b/src/fs-shim.js index 7350230..cb45169 100644 --- a/src/fs-shim.js +++ b/src/fs-shim.js @@ -1,5 +1,4 @@ /* eslint-disable */ -const fs = (typeof window === 'object' || typeof self === 'object') ? null - : eval('require("fs")') +const fs = (typeof process !== 'object' && (typeof window === 'object' || typeof self === 'object')) ? null : eval('require("fs")') module.exports = fs