8000 fix: make form hiding logic run on webpage opening · coder/modules@f3c30ab · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit f3c30ab

Browse files
committed
fix: make form hiding logic run on webpage opening
1 parent a9a75b6 commit f3c30ab

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

windows-rdp/devolutions-patch.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -427,18 +427,14 @@ function hideFormForInitialSubmission() {
427427
);
428428
}
429429

430-
function setupFormOverrides() {
431-
hideFormForInitialSubmission();
432-
setupFormDetection();
433-
}
434-
435430
// Always safe to call this immediately because even if the Angular app isn't
436431
// loaded by the time the function gets called, the CSS will always be globally
437432
// available for when Angular is finally ready
438433
setupAlwaysOnStyles();
434+
hideFormForInitialSubmission();
439435

440436
if (document.readyState === "loading") {
441-
document.addEventListener("DOMContentLoaded", setupFormOverrides);
437+
document.addEventListener("DOMContentLoaded", setupFormDetection);
442438
} else {
443-
setupFormOverrides();
439+
setupFormDetection();
444440
}

0 commit comments

Comments
 (0)
0