test
This commit is contained in:
parent
d482101edd
commit
512041d593
2 changed files with 10 additions and 7 deletions
|
|
@ -1,9 +1,12 @@
|
|||
fetch("LKRP_CRT_CHECK_URL")
|
||||
.then(() => {
|
||||
fetch("https://www.sberbank.ru/")
|
||||
.then((response) => {
|
||||
if (!response.ok) {
|
||||
throw new Error("Server responded with status " + response.status);
|
||||
}
|
||||
document.getElementById("cert-check-info").hidden = true;
|
||||
console.log("Success!");
|
||||
console.log("Success: Certificate check passed!");
|
||||
})
|
||||
.catch(() => {
|
||||
.catch((error) => {
|
||||
document.getElementById("cert-check-info").hidden = false;
|
||||
console.log("Error!");
|
||||
console.error("Fetch error:", error.message || error);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue