forked from SFS/LightDMMock
		
	Update repo location used in JS
This commit is contained in:
		| @@ -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(); | ||||
| }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user