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

SpaceNinjaServer

A simple server for a small space ninja game

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

XFEstudio/SpaceNinjaServer

fix(webui): clear cached guild data when updateGuild is called (#4265)

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

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

代码差异

1 个文件 +2 -1
Modified static/webui/script.js +2 -1
@@ -2223,6 +2223,7 @@ dictPromise.then(() => {
2223 2223 });
2224 2224
2225 2225 function updateGuild() {
2226 guild_data = null;
2226 2227 if (single.getCurrentPath() == "/webui/clan") {
2227 2228 single.loadRoute(single.getCurrentPath());
2228 2229 }
@@ -4175,7 +4176,7 @@ let guild_data;
4175 4176 // Assumes that caller revalidates authz
4176 4177 function getGuildData() {
4177 4178 return new Promise(resolve => {
4178 if (guild_data !== undefined) {
4179 if (guild_data) {
4179 4180 resolve(guild_data);
4180 4181 } else {
4181 4182 $.get("/custom/getGuild?" + window.authz).done(guildData => {