diff --git a/src/LightDMMock.js b/src/LightDMMock.js index 2f3cefc..1df0b84 100644 --- a/src/LightDMMock.js +++ b/src/LightDMMock.js @@ -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(); };