Refined update system, now reloads automatically after 10 seconds
This commit is contained in:
parent
5ed932a78a
commit
dd8b4fe3d6
2 changed files with 6 additions and 3 deletions
|
@ -59,15 +59,15 @@
|
|||
transition: background-color 0.125s, color 0.125s;
|
||||
}
|
||||
|
||||
.dialog div input:focus {
|
||||
.dialog div input:focus, .dialog div button:focus {
|
||||
background-color: #00000020;
|
||||
}
|
||||
|
||||
.dialog div input:hover {
|
||||
.dialog div input:hover, .dialog div button:hover {
|
||||
background-color: #00000040;
|
||||
}
|
||||
|
||||
.dialog div input:active {
|
||||
.dialog div input:active, .dialog div button:active {
|
||||
background-color: #00000080;
|
||||
}
|
||||
|
||||
|
|
|
@ -13,6 +13,9 @@ function reqData() {
|
|||
localStorage.setItem("commitsha", resp.sha);
|
||||
} else {
|
||||
document.querySelector(".scr-update--").classList.add("open");
|
||||
setTimeout(() => {
|
||||
window.location.href = window.location.href;
|
||||
}, 10000);
|
||||
localStorage.setItem("commitsha", resp.sha);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue