Add repo to utils
This commit is contained in:
parent
5639ffd28f
commit
7f65e9af2f
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue