ApplicationV2 GM Toolbox and GM Monitor

This commit is contained in:
Litasa
2025-05-01 12:05:54 +00:00
committed by Vlyan
parent 79979acfc1
commit 9d8c1431be
18 changed files with 958 additions and 575 deletions

View File

@@ -76,7 +76,7 @@ export class SocketHandlerL5r5e {
})();
}
_onRefreshAppId(payload) {
const app = Object.values(ui.windows).find((e) => e.id === payload.appId);
const app = game.l5r5e.HelpersL5r5e.getApplication(payload.appId);
if (!app || typeof app.refresh !== "function") {
return;
}
@@ -96,7 +96,7 @@ export class SocketHandlerL5r5e {
});
}
_onUpdateMessageIdAndRefresh(payload) {
const app = Object.values(ui.windows).find((e) => e.id === payload.appId);
const app = game.l5r5e.HelpersL5r5e.getApplication(payload.appId);
if (!app || !app.message || typeof app.refresh !== "function") {
return;
}