fix: fs shim when running on electron renderer process

This commit is contained in:
Kia Rahimian 2020-04-22 12:18:04 -04:00 committed by Mark Robert Henderson
parent e2ad2a0b79
commit 80fdf57cbe

View File

@ -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