Only fetch the most recent update from the GitHub releases (#2169)
This commit is contained in:
parent
5c54862a76
commit
048b7bc77e
|
@ -200,7 +200,7 @@ export default Vue.extend({
|
|||
checkForNewUpdates: function () {
|
||||
if (this.checkForUpdates) {
|
||||
const { version } = require('../../package.json')
|
||||
const requestUrl = 'https://api.github.com/repos/freetubeapp/freetube/releases'
|
||||
const requestUrl = 'https://api.github.com/repos/freetubeapp/freetube/releases?per_page=1'
|
||||
|
||||
$.getJSON(requestUrl, (response) => {
|
||||
const tagName = response[0].tag_name
|
||||
|
|
Loading…
Reference in New Issue