diff options
author | Victor Häggqvist <[email protected]> | 2014-06-30 20:11:49 +0200 |
---|---|---|
committer | Victor Häggqvist <[email protected]> | 2014-06-30 20:11:49 +0200 |
commit | 40002bc3cf6db8fdaf2eb67368afbdf617bf5ca5 (patch) | |
tree | e95ba492db2e7ff66d51aeb8bfad0229f1b98a93 /lastcommit.js | |
parent | d2fc93ddf4a208f6557312fa71b2a8521ee9031b (diff) |
commit object fix
Diffstat (limited to '')
-rw-r--r-- | lastcommit.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lastcommit.js b/lastcommit.js index 9ce8772..a545050 100644 --- a/lastcommit.js +++ b/lastcommit.js @@ -80,7 +80,7 @@ }); // console.log("Success: " + userCommits[0].commit.message); - callback(repo, userCommits[0].commit); + callback(repo, userCommits[0]); }; r.send(); } @@ -93,7 +93,7 @@ */ function renderWidget(element, data) { var url = 'https://github.com/' + data.user + '/' + data.repo.name +'/commit/' + data.commit.sha, - html = '<a href="' + url +'"> ' + data.commit.message + '</a>'; + html = '<a href="' + url +'"> ' + data.commit.commit.message + '</a>'; element.innerHTML = html; } |