Skip to content

Commit

Permalink
Merge pull request #92 from joola/feature/#91
Browse files Browse the repository at this point in the history
#91 parse query string options.
  • Loading branch information
itayw committed May 19, 2014
2 parents 5f98527 + 216624d commit 6237bc9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ if (isBrowser()) {
if (qs && qs.APIToken) {
joolaio.options.APIToken = qs.APIToken;
}
if (qs && qs.token) {
joolaio.options.token = qs.token;
}
if (qs && qs.host) {
joolaio.options.host = qs.host;
}
}
}
}
Expand Down Expand Up @@ -287,7 +293,7 @@ joolaio.set = function (key, value, callback) {
return callback(new Error('Failed to verify API Token'));

joolaio.USER = user;
if (typeof callback === 'function'){
if (typeof callback === 'function') {
return callback(null);
}
});
Expand Down

0 comments on commit 6237bc9

Please sign in to comment.