Refactor devolutions-patch.js for reduced indent size
Refactor the `windows-rdp/devolutions-patch.js` script to use a two-space indentation style from a previous four-space style. This change improves code readability and consistency with the project's codebase formatting style. All functional code remains unaffected; only formatting has been adjusted.
This commit is contained in:
@@ -152,7 +152,7 @@ async function autoSubmitForm(myForm) {
|
|||||||
// they're part of the form. Avoids CSS stacking context issues, maybe?
|
// they're part of the form. Avoids CSS stacking context issues, maybe?
|
||||||
/** @type {HTMLLIElement | null} */
|
/** @type {HTMLLIElement | null} */
|
||||||
const protocolOption = document.querySelector(
|
const protocolOption = document.querySelector(
|
||||||
`p-dropdownitem[ng-reflect-label="${PROTOCOL}"] li`,
|
'p-dropdownitem[ng-reflect-label="' + PROTOCOL + '"] li',
|
||||||
);
|
);
|
||||||
|
|
||||||
if (protocolOption === null) {
|
if (protocolOption === null) {
|
||||||
@@ -191,7 +191,7 @@ async function autoSubmitForm(myForm) {
|
|||||||
|
|
||||||
if (input === null) {
|
if (input === null) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Unable to element that matches query "${querySelector}"`,
|
'Unable to element that matches query "' + querySelector + '"',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -293,7 +293,7 @@ function setupFormDetection() {
|
|||||||
*/
|
*/
|
||||||
function setupAlwaysOnStyles() {
|
function setupAlwaysOnStyles() {
|
||||||
const styleId = "coder-patch--styles-always-on";
|
const styleId = "coder-patch--styles-always-on";
|
||||||
const existingContainer = document.querySelector(`#${styleId}`);
|
const existingContainer = document.querySelector("#" + styleId);
|
||||||
if (existingContainer) {
|
if (existingContainer) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -315,7 +315,7 @@ function hideFormForInitialSubmission() {
|
|||||||
const cssOpacityVariableName = "--coder-opacity-multiplier";
|
const cssOpacityVariableName = "--coder-opacity-multiplier";
|
||||||
|
|
||||||
/** @type {HTMLStyleElement | null} */
|
/** @type {HTMLStyleElement | null} */
|
||||||
let styleContainer = document.querySelector(`#${styleId}`);
|
let styleContainer = document.querySelector("#" + styleId);
|
||||||
if (!styleContainer) {
|
if (!styleContainer) {
|
||||||
styleContainer = document.createElement("style");
|
styleContainer = document.createElement("style");
|
||||||
styleContainer.id = styleId;
|
styleContainer.id = styleId;
|
||||||
|
|||||||
Reference in New Issue
Block a user