aboutsummaryrefslogtreecommitdiff
path: root/lastcommit.js
diff options
context:
space:
mode:
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;
}