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

Commit 74b2b70

Browse files
tcmedaviddias
tcme
authored andcommitted
provide a default for options (#813)
* fix: provide a default for options
1 parent 2abd783 commit 74b2b70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class IPFS extends EventEmitter {
2626
EXPERIMENTAL: {}
2727
}
2828

29+
options = options || {}
30+
2931
extend(this._options, options)
3032

3133
if (options.init === false) {

0 commit comments

Comments
 (0)