SUPPORT-8783: Fix

This commit is contained in:
Eduard Tihomirov 2025-01-24 14:33:45 +03:00
parent d4fa9723a2
commit 98674f6f81

View file

@ -14,8 +14,16 @@ export class HomeLandingComponent implements OnInit {
ngOnInit(): void {
let url = this.appConfigService.getParamValue("cert_check_url")
fetch(url)
.then(() => document.getElementById("browser-check-info").hidden = true)
.catch(() => document.getElementById("browser-check-info").hidden = false)
.then((response) => {
if (!response.ok) {
document.getElementById("cert-check-info").hidden = false;
console.error("Server responded with status " + response.status);
}
document.getElementById("cert-check-info").hidden = true;
})
.catch(() => {
document.getElementById("cert-check-info").hidden = false;
})
.finally(() => this.cd.markForCheck());
}
}