SUPPORT-8783: Fix
This commit is contained in:
parent
d4fa9723a2
commit
98674f6f81
1 changed files with 10 additions and 2 deletions
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue