mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-06-27 08:22:31 +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 */
|
/* eslint-disable */
|
||||||
const fs = (typeof window === 'object' || typeof self === 'object') ? null
|
const fs = (typeof process !== 'object' && (typeof window === 'object' || typeof self === 'object')) ? null : eval('require("fs")')
|
||||||
: eval('require("fs")')
|
|
||||||
|
|
||||||
module.exports = fs
|
module.exports = fs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user