mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-06-26 16:02:29 +00:00
fix: fs shim when running on electron renderer process
This commit is contained in:
parent
e2ad2a0b79
commit
80fdf57cbe
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user