fix: refs #6555 replace renewToken url
gitea/worker-time-control/pipeline/pr-test This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-06-19 09:52:07 +02:00
parent f540a51dd1
commit 30d9acf58b
1 changed files with 5 additions and 2 deletions

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());