Skip to content

Commit d666aa0

Browse files
committed
Default value for options
1 parent a623834 commit d666aa0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function Client (options) {
66

77
if (!options.url) throw new Error('Missing url parameter')
88

9-
self.options = options
9+
self.options = options || {}
1010
self.url = options.url
1111

1212
// A stack of registered listeners

0 commit comments

Comments
 (0)