Skip to content

Commit

Permalink
Default value for options
Browse files Browse the repository at this point in the history
  • Loading branch information
ilearnio committed Jul 28, 2016
1 parent a623834 commit d666aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function Client (options) {

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

self.options = options
self.options = options || {}
self.url = options.url

// A stack of registered listeners
Expand Down

0 comments on commit d666aa0

Please sign in to comment.