Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit f620d71

Browse files
raksooodignifiedquire
authored andcommitted
feat(core): allow IPFS object to be created without supplying configOpts
1 parent 78ac8cf commit f620d71

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const components = require('./components')
1111

1212
class IPFS {
1313
constructor (configOpts) {
14+
configOpts = configOpts || {}
1415
let repoInstance
1516
if (typeof configOpts.repo === 'string' || configOpts.repo === undefined) {
1617
repoInstance = defaultRepo(configOpts.repo)

0 commit comments

Comments
 (0)