diff --git a/src/js/tribe/tribe.js b/src/js/tribe/tribe.js index 80467e032..795428109 100644 --- a/src/js/tribe/tribe.js +++ b/src/js/tribe/tribe.js @@ -215,6 +215,13 @@ socket.on("connect", async (e) => { // changeActiveSubpage("prelobby"); }); +$(".tribechangename").click((e) => { + let name = prompt("Name"); + if (name) { + socket.emit("user_set_name", { name, confirm: true }); + } +}); + // socket.on("user_update_name", e => { // name = e.name; // }) diff --git a/static/index.html b/static/index.html index 371ec0400..854558480 100644 --- a/static/index.html +++ b/static/index.html @@ -1944,20 +1944,32 @@ --> - + steps on how to reproduce the issue). + +