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() {
|
||||
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user