фикс 9

This commit is contained in:
2026-04-23 15:43:45 +03:00
parent 946e461fc0
commit f9e6c31b33

View File

@@ -1308,6 +1308,7 @@ data-role="{{ p.position or '' }}"
const sessionToken = window.MATCH_DATA?.sessionToken;
const teamLogos = window.MATCH_DATA?.teamLogos || {};
const vmixTeamLogos = window.MATCH_DATA?.vmixTeamLogos || {};
const currentUserLogin = window.MATCH_DATA?.currentUser?.username || null;
if (!matchId || !sessionToken) {
return;
@@ -1349,9 +1350,9 @@ data-role="{{ p.position or '' }}"
},
credentials: "same-origin",
body: JSON.stringify({
match_id: MATCH_ID,
match_id: matchId,
commands,
target_login: CURRENT_USER_LOGIN,
target_login: currentUserLogin,
meta: {
source: "person_click",
title_input: inputName,
@@ -1372,7 +1373,6 @@ data-role="{{ p.position or '' }}"
}
}
document.addEventListener("click", function (event) {
const trigger = event.target.closest(".vmix-person-trigger");
if (!trigger) return;
@@ -1383,9 +1383,6 @@ data-role="{{ p.position or '' }}"
const firstName = String(trigger.dataset.firstName || "").trim();
const lastName = String(trigger.dataset.lastName || "").trim();
const role = String(trigger.dataset.role || "").trim();
const logoUrl = side === "away"
? (vmixTeamLogos.away || teamLogos.away)
: (vmixTeamLogos.home || teamLogos.home);
let formattedName = "";
@@ -1400,6 +1397,7 @@ data-role="{{ p.position or '' }}"
sendNeutralPersonTitle(formattedName, role, side);
});
})();
</script>