Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
yongjhih committed Jul 11, 2016
1 parent ae76930 commit 6f1ec40
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions index.js
Expand Up @@ -17,12 +17,11 @@ function fetch(url, options) {
}

RxTwitch.Follows = follows;
function follows(user, baseUrl) {
if (!baseUrl) baseUrl = 'https://api.twitch.tv';
function follows(user, options) {
var baseUrl = 'https://api.twitch.tv';

var url = baseUrl + `/kraken/channels/${user}/follows`;
console.log(url);
return fetch(url).flatMap(function (json) { return Rx.Observable.from(json.follows); });
return fetch(url, options).flatMap(function (json) { return Rx.Observable.from(json.follows); });
}

/* vim: set sw=2: */

0 comments on commit 6f1ec40

Please sign in to comment.