mirror of
https://github.com/AltarikMC/Launcher
synced 2024-11-21 06:09:51 +01:00
Changed mod informations endpoint
This commit is contained in:
parent
30d14d4bbc
commit
5dc072f77f
@ -21,12 +21,14 @@ class Minecraft {
|
|||||||
auth = null
|
auth = null
|
||||||
modsList = undefined
|
modsList = undefined
|
||||||
showNotification = undefined
|
showNotification = undefined
|
||||||
|
modsInformationsEndpoint = "https://launcher.altarik.fr"
|
||||||
|
|
||||||
setShowNotification(showNotification) {
|
setShowNotification(showNotification) {
|
||||||
this.showNotification = showNotification
|
this.showNotification = showNotification
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated Mojang removed this method of authentification
|
||||||
* Used to login through Mojang account
|
* Used to login through Mojang account
|
||||||
*/
|
*/
|
||||||
login(event, win, username, password) {
|
login(event, win, username, password) {
|
||||||
@ -133,7 +135,7 @@ class Minecraft {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getModsInformations(event) {
|
getModsInformations(event) {
|
||||||
fetch("https://altarik.fr/launcher.json").then(response => {
|
fetch(this.modsInformationsEndpoint).then(response => {
|
||||||
if(response.ok) {
|
if(response.ok) {
|
||||||
response.json().then(data => {
|
response.json().then(data => {
|
||||||
let folder = join(this.localappdata, "altarik-launcher", "data")
|
let folder = join(this.localappdata, "altarik-launcher", "data")
|
||||||
|
Loading…
Reference in New Issue
Block a user