Skip to content

Commit

Permalink
feat(search): allows user to run a search with a specific url
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Jul 30, 2016
1 parent 6dabbcd commit 80d374f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,11 @@ var parseEntries = function ($) {
return output;
};

Search.prototype.run = function() {
Search.prototype.run = function(url) {
var self = this;
var url = this.getUrl();
if (url == null) {
url = this.getUrl();
}
return new Promise(
function(resolve, reject) {
request.get({
Expand Down

0 comments on commit 80d374f

Please sign in to comment.