This commit is contained in:
Jones8683
2025-08-04 14:36:26 +09:30
parent a0e8fc2233
commit 2ded9b3f83
+2 -7
View File
@@ -4,7 +4,7 @@ import stringToHTML from "./stringToHTML";
export async function DeleteWhatsNew() { export async function DeleteWhatsNew() {
const bkelement = document.getElementById("whatsnewbk"); const bkelement = document.getElementById("whatsnewbk");
const popup = document.getElementsByClassName("whatsnewContainer")[0]; const popup = document.querySelector(".whatsnewContainer") as HTMLElement;
if (!settingsState.animations) { if (!settingsState.animations) {
bkelement?.remove(); bkelement?.remove();
@@ -121,12 +121,7 @@ export function OpenMinecraftServerPopup() {
let exitbutton = document.createElement("div"); let exitbutton = document.createElement("div");
exitbutton.id = "whatsnewclosebutton"; exitbutton.id = "whatsnewclosebutton";
container.append(header); container.append(header, imagecont, text as HTMLElement, footer as HTMLElement, exitbutton);
container.append(imagecont);
container.append(textcontainer);
container.append(text as HTMLElement);
container.append(footer as HTMLElement);
container.append(exitbutton);
background.append(container); background.append(container);