docs: use latest tag name instead of package.json's version

This commit is contained in:
jean-emmanuel 2016-11-03 14:50:43 +01:00
parent 9321dc7e4f
commit ddab3e416d

View file

@ -2,7 +2,7 @@ $(document).ready(function(){
$.getJSON('https://api.github.com/repos/jean-emmanuel/open-stage-control',function(data){
$('#github-stars').text(data.stargazers_count)
})
$.getJSON('https://raw.githubusercontent.com/jean-emmanuel/open-stage-control/master/app/package.json',function(data){
$('#github-version').text('v'+data.version)
$.getJSON('https://api.github.com/repos/jean-emmanuel/open-stage-control/tags',function(data){
$('#github-version').text(data[0].name)
})
})