Archived
1
0

Fixed a bug with the GitHub history

This commit is contained in:
2020-01-10 09:55:41 +01:00
parent 4e704b740a
commit af026aa3a7

View File

@@ -29,12 +29,14 @@ function addGitHistory(data) {
" <a href=" + " <a href=" +
url + url +
" target='_blanc'>(Link)</a>" " target='_blanc'>(Link)</a>"
document.getElementById("log").appendChild(new_li) var log = document.getElementById("log")
log.appendChild(new_li)
} }
} }
} }
// Send HTTP request to the GitHub API to get information about this repo // Send HTTP request to the GitHub API to get information about this repo
function getGitHubAPIData() {
const Http = new XMLHttpRequest() const Http = new XMLHttpRequest()
Http.open("GET", GIT_URL) Http.open("GET", GIT_URL)
Http.send() Http.send()
@@ -45,6 +47,7 @@ Http.onreadystatechange = function() {
addGitHistory(JSON.parse(Http.responseText)) addGitHistory(JSON.parse(Http.responseText))
} }
} }
}
export default () => ( export default () => (
<div> <div>