From 5f418c325321f88f93a6b6132e60e4739ebc78d0 Mon Sep 17 00:00:00 2001 From: Parkreiner Date: Tue, 25 Jun 2024 21:51:21 +0000 Subject: [PATCH] docs: add comments about necessary double dollar signs --- windows-rdp/devolutions-patch.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/windows-rdp/devolutions-patch.js b/windows-rdp/devolutions-patch.js index 86198a8..9b77a8e 100644 --- a/windows-rdp/devolutions-patch.js +++ b/windows-rdp/devolutions-patch.js @@ -103,9 +103,9 @@ function setInputValue(inputField, inputText) { }, 3_000); const handleSuccessfulDispatch = () => { - resolve(); window.clearTimeout(timeoutId); inputField.removeEventListener("input", handleSuccessfulDispatch); + resolve(); }; inputField.addEventListener("input", handleSuccessfulDispatch); @@ -334,6 +334,8 @@ function hideFormForInitialSubmission() { Can be 0 or 1. Start off invisible to avoid risks of UI flickering, but the rest of the function should be in charge of making the form container visible again if something goes wrong during setup. + + Double dollar sign needed to avoid Terraform script false positives */ $${cssOpacityVariableName}: 0; } @@ -346,6 +348,9 @@ function hideFormForInitialSubmission() { */ web-client-form, body > div.p-overlay { + /* + Double dollar sign needed to avoid Terraform script false positives + */ opacity: calc(100% * var($${cssOpacityVariableName})) !important; } `;