#6555 refactor to js #28

Merged
jorgep merged 13 commits from 6555-refactorToJs into test 2024-10-10 13:51:47 +00:00
1 changed files with 5 additions and 2 deletions
Showing only changes of commit 30d9acf58b - Show all commits

View File

@ -17,11 +17,14 @@ function printError(msg) {
confirmBtn.style.hidden = false;
confirmBtn.classList.add("fade-in");
setTimeout(() => (confirmBtn.classList.add("fade-out"), confirmReset()), 2300);
setTimeout(() => {
confirmBtn.classList.add("fade-out");
setTimeout(confirmReset, 200);
}, 2300);
}
async function renewToken() {
const data = await call("AccessTokens/renewToken", {});
const data = await call("vnUsers/renewToken", { method: "POST" });
localStorage.setItem("ttl", data.ttl);
localStorage.setItem("created", Date.now());