XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFESpaceNinjaServer

fix(webui): update "possess" label when changing language (#3758)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3758 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

f3db80ae
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -1
Modified static/webui/script.js +2 -1
@@ -5213,7 +5213,8 @@ single.getRoute("/webui/admin").on("beforeload", function () {
5213 5213 const td = document.createElement("td");
5214 5214 if (window.accountId != user.id) {
5215 5215 const a = document.createElement("a");
5216 a.textContent = loc(`admin_possess`);
5216 a.textContent = loc("admin_possess");
5217 a.setAttribute("data-loc", "admin_possess");
5217 5218 a.href = "#";
5218 5219 a.onclick = function () {
5219 5220 localStorage.setItem("possessing", user.id);