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

Commit

Permalink
feat(core): allow IPFS object to be created without supplying configOpts
Browse files Browse the repository at this point in the history
  • Loading branch information
raksooo authored and dignifiedquire committed Feb 22, 2017
1 parent 78ac8cf commit f620d71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f620d71

Please sign in to comment.