launcher: query new repo instead of gh

This commit is contained in:
jean-emmanuel 2025-12-17 12:12:36 +01:00
parent 6de4b1ac5c
commit 4857a20b61

View file

@ -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