launcher: query new repo instead of gh
This commit is contained in:
parent
6de4b1ac5c
commit
4857a20b61
1 changed files with 3 additions and 2 deletions
|
|
@ -11,11 +11,12 @@ DOM.get(document, '#osc-greeting-header')[0].appendChild(html`${PACKAGE.productN
|
|||
if (settings.remote.read('checkForUpdates') && navigator.onLine) {
|
||||
|
||||
var request = new XMLHttpRequest()
|
||||
request.open('GET', 'https://api.github.com/repos/jean-emmanuel/open-stage-control/tags', true)
|
||||
request.open('GET', 'https://framagit.org/api/v4/projects/jean-emmanuel%2Fopen-stage-control/releases', true)
|
||||
|
||||
request.onload = function() {
|
||||
if (request.status >= 200 && request.status < 400) {
|
||||
var data = JSON.parse(request.responseText),
|
||||
|
||||
var data = JSON.parse(request.responseText).filter(x=>!x.name.match(/alpha|beta/)),
|
||||
current = 'v' + PACKAGE.version,
|
||||
latest = data[0].name
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue