1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-22 17:50:07 +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,10 +1,10 @@
(function() { (function() {
const s = document.createElement('script'), var s = document.createElement('script'),
t = document.createElement('script'), t = document.createElement('script'),
githubApiUrl = 'https://api.github.com/repos/', githubApiUrl = 'https://api.github.com/repos/',
owner = 'bigchaindb', owner = 'bigchaindb',
repo = 'bigchaindb'; repo = 'bigchaindb';
s.async = true; s.async = true;
s.src = githubApiUrl + owner + '/' + repo + '?callback=' + owner + '.getGitHubRepoInfo'; s.src = githubApiUrl + owner + '/' + repo + '?callback=' + owner + '.getGitHubRepoInfo';
@ -13,14 +13,14 @@
t.src = githubApiUrl + owner + '/' + repo + '/releases/latest?callback=' + owner + '.getGitHubReleaseInfo'; t.src = githubApiUrl + owner + '/' + repo + '/releases/latest?callback=' + owner + '.getGitHubReleaseInfo';
window[owner] = window[owner] || {}; window[owner] = window[owner] || {};
window[owner].getGitHubRepoInfo = (response) => { window[owner].getGitHubRepoInfo = function(response) {
var stargazers = response.data.stargazers_count; var stargazers = response.data.stargazers_count;
document.getElementById('stargazers').innerText = stargazers; document.getElementById('stargazers').innerText = stargazers;
}; };
window[owner].getGitHubReleaseInfo = (response) => { window[owner].getGitHubReleaseInfo = function(response) {
var version = response.data.tag_name; var version = response.data.tag_name;