mirror of
https://github.com/zumbiepig/MineXLauncher.git
synced 2025-06-08 09:24:48 +00:00
Rename username to launcher_username and reduce cookie expiration
This commit is contained in:
parent
9c9c8196b3
commit
ab9eb07444
@ -5,7 +5,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
const usernameInput = document.getElementById("username-input") as HTMLInputElement;
|
||||
const profileName = document.getElementById("profile-name");
|
||||
|
||||
const savedUsername = cookie.get("launcherUsername");
|
||||
const savedUsername = cookie.get("launcher_username");
|
||||
if (profileName && savedUsername) {
|
||||
profileName.textContent = savedUsername;
|
||||
} else if (profileName && !savedUsername) {
|
||||
@ -18,7 +18,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
const username = usernameInput.value.trim();
|
||||
if (username) {
|
||||
profileName.textContent = username;
|
||||
cookie.set("launcherUsername", username, 365);
|
||||
cookie.set("launcher_username", username, 30);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user