Skip to content

Commit

Permalink
feat: new Account accepts url as string
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjinlo committed Aug 11, 2016
1 parent 05bf317 commit 50e174c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils/get-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ function getState (options) {
options = {}
}

if (typeof options === 'string') {
options = {url: options}
}

if (!options.url) {
throw new Error('options.url is required')
}
Expand Down

0 comments on commit 50e174c

Please sign in to comment.