Skip to content

Commit

Permalink
Fixed another bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Nov 14, 2016
1 parent 20acf42 commit f5149c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export class Client {
* The front page or home URL of the instance making requests.
* @type {Blog}
*/
this.blog = options.blog instanceof Blog ? options.blog : new Blog({url: options.blog});
this.blog = null;
if (options.blog instanceof Blog) this.blog = options.blog;
else if (typeof options.blog == 'string') this.blog = new Blog({url: options.blog});

/**
* Value indicating whether the client operates in test mode.
Expand Down

0 comments on commit f5149c3

Please sign in to comment.