This commit is contained in:
Eduard Tihomirov 2025-01-24 11:53:29 +03:00
parent d482101edd
commit 512041d593
2 changed files with 10 additions and 7 deletions

View file

@ -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);
});