Add repo to utils

This commit is contained in:
Jiiks 2015-12-03 14:29:02 +02:00
parent 5639ffd28f
commit 7f65e9af2f
1 changed files with 2 additions and 2 deletions

View File

@ -56,9 +56,9 @@ Utils.prototype.downloadHttp = function(url, callback) {
});
}
Utils.prototype.getHash = function(beta, callback) {
Utils.prototype.getHash = function(beta, repo, callback) {
var branch = beta ? "beta" : "master";
this.download("api.github.com", "/repos/Jiiks/BetterDiscordApp/commits/"+branch+"", function(data) {
this.download("api.github.com", "/repos/"+repo+"/BetterDiscordApp/commits/"+branch+"", function(data) {
callback(JSON.parse(data).sha);
});
}