fix: make form hiding logic run on webpage opening

web-rdp-cloud-fixes
Parkreiner 10 months ago
parent a9a75b675f
commit f3c30abeb4

@ -427,18 +427,14 @@ function hideFormForInitialSubmission() {
);
}
function setupFormOverrides() {
hideFormForInitialSubmission();
setupFormDetection();
}
// Always safe to call this immediately because even if the Angular app isn't
// loaded by the time the function gets called, the CSS will always be globally
// available for when Angular is finally ready
setupAlwaysOnStyles();
hideFormForInitialSubmission();
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", setupFormOverrides);
document.addEventListener("DOMContentLoaded", setupFormDetection);
} else {
setupFormOverrides();
setupFormDetection();
}

Loading…
Cancel
Save