Update repo location used in JS

This commit is contained in:
Elias Schriefer 2021-08-17 11:04:27 +02:00
parent 512bad6a36
commit c3a1624aab

View File

@ -542,17 +542,17 @@ window.checkForUpdate = function(currentVersion) {
var latest;
if(request.responseText !== undefined)
latest = JSON.parse(request.responseText).tag_name;
latest = JSON.parse(request.responseText)[0].tag_name;
if(currentVersion !== latest)
window.console.warn("You are using an outdated version of LightDMMock. Please download the new version from https://github.com/CytoDev/LightDMMock/releases/" + latest);
window.console.warn("You are using an outdated version of LightDMMock. Please download the new version from https://git.sfs.ddnss.org/EliasSchriefer/LightDMMock/releases/tag/" + latest);
} catch(e) {
window.console.error(e.toString());
window.console.warn("Could not check for new version of LightDMMock. Please check for a new version manually by visiting https://github.com/CytoDev/LightDMMock/releases/latest");
window.console.warn("Could not check for new version of LightDMMock. Please check for a new version manually by visiting https://git.sfs.ddnss.org/EliasSchriefer/LightDMMock/releases/latest");
}
break;
case 404:
window.console.warn("Could not check for new version of LightDMMock. Please check for a new version manually by visiting https://github.com/CytoDev/LightDMMock/releases/latest");
window.console.warn("Could not check for new version of LightDMMock. Please check for a new version manually by visiting https://git.sfs.ddnss.org/EliasSchriefer/LightDMMock/releases/latest");
break;
default:
break;
@ -560,7 +560,7 @@ window.checkForUpdate = function(currentVersion) {
}
};
request.open("GET", "https://api.github.com/repos/CytoDev/LightDMMock/releases/latest", true);
request.open("GET", "https://git.sfs.ddnss.org/api/v1/repos/EliasSchriefer/LightDMMock/releases", true);
request.send();
};