diff --git a/src/core/index.js b/src/core/index.js index ff1a682877..fc4c54d6e5 100644 --- a/src/core/index.js +++ b/src/core/index.js @@ -11,6 +11,7 @@ const components = require('./components') class IPFS { constructor (configOpts) { + configOpts = configOpts || {} let repoInstance if (typeof configOpts.repo === 'string' || configOpts.repo === undefined) { repoInstance = defaultRepo(configOpts.repo)