From e4721d823e9e84b220b22da6b2496e2171a8b897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=AE=D1=80=D0=B8=D0=B9=20=D0=A7=D0=B5=D1=80=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=BA=D0=BE?= Date: Tue, 21 Apr 2026 17:31:00 +0300 Subject: [PATCH] =?UTF-8?q?=D1=87=D0=B8=D0=BD=D1=8E=20=D0=B2=D1=8B=D0=B7?= =?UTF-8?q?=D0=BE=D0=B2=20=D1=82=D0=B8=D1=82=D1=80=D0=BE=D0=B2=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=BA=D0=BB=D1=8E=D1=87=D0=B0=D1=8F=20=D0=B2?= =?UTF-8?q?=D0=BA=D0=BB=D0=B0=D0=B4=D0=BA=D0=B8=20=D0=BD=D0=B0=20=D0=B2?= =?UTF-8?q?=D0=B5=D0=B1=20=D0=BC=D0=BE=D1=80=D0=B4=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/script.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/static/script.js b/static/script.js index 548ccb1..2cd9490 100644 --- a/static/script.js +++ b/static/script.js @@ -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) {