From 40002bc3cf6db8fdaf2eb67368afbdf617bf5ca5 Mon Sep 17 00:00:00 2001 From: Victor Häggqvist Date: Mon, 30 Jun 2014 20:11:49 +0200 Subject: commit object fix --- lastcommit.js | 4 ++-- 1 file 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 = ' ' + data.commit.message + ''; + html = ' ' + data.commit.commit.message + ''; element.innerHTML = html; } -- cgit v1.2.3