Send query string instead of whole URL to GitHub

This commit is contained in:
Richard Feldman
2016-06-25 08:55:15 -07:00
parent d3b89f4d14
commit 7f55221be7
6 changed files with 12 additions and 16 deletions

View File

@@ -22,9 +22,8 @@
function searchGithub(query) {
console.log("Searching for", query);
var search = github.getSearch(query);
search.repositories({}, function (err, repositories) {
github.getSearch(query).repositories({}, function (err, repositories) {
console.log("Got response", repositories);
app.ports.githubResponse.send(repositories);