mirror of
https://github.com/bigchaindb/site.git
synced 2024-11-01 07:45:41 +01:00
fix build
This commit is contained in:
parent
6c095a14a6
commit
3bb0e8e129
@ -1,6 +1,6 @@
|
|||||||
(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',
|
||||||
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user