Player search

This commit is contained in:
RochesterX
2025-11-17 18:56:31 -05:00
parent 9fd3a76546
commit 310bbc9679
10 changed files with 137 additions and 51 deletions

9
public/delete.js Normal file
View File

@@ -0,0 +1,9 @@
import { postData } from "./client.js";
document.getElementById("deleteButton").onclick = async e => {
e.preventDefault();
const resultObject = await postData("/delete", { username: true, actor: true }, window.localStorage.getItem("token"));
window.localStorage.removeItem("token");
alert(resultObject.message);
window.location.href = "/login.html"
};