mirror of
https://github.com/bigchaindb/site.git
synced 2024-11-22 17:50:07 +01:00
fix build
This commit is contained in:
parent
6c095a14a6
commit
3bb0e8e129
@ -1,10 +1,10 @@
|
||||
(function() {
|
||||
|
||||
const s = document.createElement('script'),
|
||||
t = document.createElement('script'),
|
||||
githubApiUrl = 'https://api.github.com/repos/',
|
||||
owner = 'bigchaindb',
|
||||
repo = 'bigchaindb';
|
||||
var s = document.createElement('script'),
|
||||
t = document.createElement('script'),
|
||||
githubApiUrl = 'https://api.github.com/repos/',
|
||||
owner = 'bigchaindb',
|
||||
repo = 'bigchaindb';
|
||||
|
||||
s.async = true;
|
||||
s.src = githubApiUrl + owner + '/' + repo + '?callback=' + owner + '.getGitHubRepoInfo';
|
||||
@ -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