1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-01 07:45:41 +01:00

fix build

This commit is contained in:
Matthias Kretschmann 2017-05-06 22:09:00 +02:00
parent 6c095a14a6
commit 3bb0e8e129
Signed by: m
GPG Key ID: BD3C1F3EDD7831FC

View File

@ -1,6 +1,6 @@
(function() {
const s = document.createElement('script'),
var s = document.createElement('script'),
t = document.createElement('script'),
githubApiUrl = 'https://api.github.com/repos/',
owner = 'bigchaindb',
@ -13,14 +13,14 @@
t.src = githubApiUrl + owner + '/' + repo + '/releases/latest?callback=' + owner + '.getGitHubReleaseInfo';
window[owner] = window[owner] || {};
window[owner].getGitHubRepoInfo = (response) => {
window[owner].getGitHubRepoInfo = function(response) {
var stargazers = response.data.stargazers_count;
document.getElementById('stargazers').innerText = stargazers;
};
window[owner].getGitHubReleaseInfo = (response) => {
window[owner].getGitHubReleaseInfo = function(response) {
var version = response.data.tag_name;