чиню вызов титров переключая вкладки на веб морде

This commit is contained in:
2026-04-21 17:31:00 +03:00
parent 640211ff59
commit e4721d823e

View File

@@ -2115,7 +2115,24 @@ function renderLineupRow(row) {
`;
}
document.addEventListener("click", async function (event) {
const tab = event.target.closest(".tab-link[data-vmix-title]");
if (!tab) return;
event.preventDefault();
const title = String(tab.dataset.vmixTitle || "").trim();
try {
if (title) {
await sendDirectVmixCommands([
vmixCmd(`Function=PreviewInput&Input=${encodeURIComponent(title)}`)
]);
}
} finally {
window.location.href = tab.href;
}
});
function makeDraggable(el) {