fix: pseudo micasend
This commit is contained in:
parent
2547109e4a
commit
8efa8c25ea
1 changed files with 8 additions and 1 deletions
|
@ -45,7 +45,14 @@ class Phone{
|
||||||
});
|
});
|
||||||
document.getElementById("appli-micasend").addEventListener("click", (e) => {
|
document.getElementById("appli-micasend").addEventListener("click", (e) => {
|
||||||
this.webviewName = "Micasend";
|
this.webviewName = "Micasend";
|
||||||
this.changeWindow("https://micasend.magictintin.fr/gta6?username="+getCookie("pseudo"));
|
let pseudo = getCookie("pseudo")
|
||||||
|
if(pseudo) {
|
||||||
|
pseudo = pseudo.replace(/ /g, '_');
|
||||||
|
pseudo = pseudo.replace(/[^a-zA-Z0-9_]/g, '');
|
||||||
|
} else {
|
||||||
|
pseudo = "Soldat_inconnu"
|
||||||
|
}
|
||||||
|
this.changeWindow("https://micasend.magictintin.fr/gta6?username="+pseudo);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue