From c3a1624aabca428589b57c0a802ec4edd73de266 Mon Sep 17 00:00:00 2001 From: EliasSchriefer Date: Tue, 17 Aug 2021 11:04:27 +0200 Subject: [PATCH] Update repo location used in JS --- src/LightDMMock.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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(); };