Skip to content

Commit

Permalink
Merge pull request #55 from TeamNewPipe/web-api
Browse files Browse the repository at this point in the history
Use TeamNewPipe/web-api instead of GitHub API
  • Loading branch information
TheAssassin authored Mar 5, 2018
2 parents 7ff846b + fff6838 commit 6aa97e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/github-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
function latestVersion(tag = false) {
var xhttp = new XMLHttpRequest();
xhttp.open("GET", "https://api.github.com/repos/TeamNewPipe/NewPipe/releases/latest", false);
xhttp.open("GET", "https://newpipe.schabi.org/api/current-version", false);
xhttp.send();
return (tag) ? $.parseJSON(xhttp.responseText)["name"].substr(1) : $.parseJSON(xhttp.responseText)["name"];
return (tag) ?xhttp.responseText.substr(1) : xhttp.responseText;
}

0 comments on commit 6aa97e8

Please sign in to comment.