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: invisible webui text due to null default language (#3625)

This fixes a small typo that causes the default webui text to be invisible due to a non-existent variable being called, which leads to other odd text rendering problems (like only rendering ~50% of text unless a hard refresh occurs if the null language is swapped post-login). Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3625 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: thend <scanbluekey@tutamail.com> Co-committed-by: thend <scanbluekey@tutamail.com>

3887c12f
thend <scanbluekey@tutamail.com>
提交于

代码差异

1 个文件 +1 -1
Modified static/webui/script.js +1 -1
@@ -297,7 +297,7 @@ function setActiveLanguage(lang) {
297 297 document.documentElement.appendChild(script);
298 298 });
299 299 }
300 setActiveLanguage(localStorage.getItem("lang") ?? webui_conf.defaultLanguage ?? en);
300 setActiveLanguage(localStorage.getItem("lang") ?? webui_conf.defaultLanguage ?? "en");
301 301
302 302 function setLanguage(lang) {
303 303 setActiveLanguage(lang);