From de7c798837931a71360914408ea66242774d21cc 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 13:56:24 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D1=84=D0=B8=D0=BA=D1=81=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BE=D1=82=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D1=83=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=BF=D1=80=D0=BE=D1=81=D0=BE=D0=B2=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D0=BF=D1=80=D0=B5=D0=B2=D1=8C=D1=8E=20vMix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/match_workspace.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/templates/match_workspace.html b/templates/match_workspace.html index 233d7b6..df050e7 100644 --- a/templates/match_workspace.html +++ b/templates/match_workspace.html @@ -1192,7 +1192,7 @@ if (!inputName) return; try { - await fetch("/api/vmix/publish-command", { + const response = await fetch("/api/vmix/publish-command", { method: "POST", headers: { "Content-Type": "application/json", @@ -1212,16 +1212,20 @@ } }) }); + + if (!response.ok) { + console.error("Ошибка отправки команды в vMix:", response.status); + } } catch (error) { console.error("Не удалось отправить команду в vMix:", error); } } document.addEventListener("click", function (event) { - const link = event.target.closest(".tab-link[data-vmix-preview-input]"); + const link = event.target.closest(".tab-link[data-vmix-title]"); if (!link) return; - const inputName = link.dataset.vmixPreviewInput; + const inputName = link.dataset.vmixTitle; sendVmixPreviewInput(inputName); }); })();