Fixed a bug with the GitHub history
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user