aboutsummaryrefslogtreecommitdiff
path: root/lastcommit.js
diff options
context:
space:
mode:
authorVictor Häggqvist <[email protected]>2014-06-30 20:11:49 +0200
committerVictor Häggqvist <[email protected]>2014-06-30 20:11:49 +0200
commit40002bc3cf6db8fdaf2eb67368afbdf617bf5ca5 (patch)
treee95ba492db2e7ff66d51aeb8bfad0229f1b98a93 /lastcommit.js
parentd2fc93ddf4a208f6557312fa71b2a8521ee9031b (diff)
commit object fix
Diffstat (limited to '')
-rw-r--r--lastcommit.js4
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;
}