mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
setup: Reduce refresh time when application is already installed
In the event setup page is being shown after the application installation is already completed. Immediately reload instead of waiting for 3 seconds are usual. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
65f1af7a7b
commit
915b8013d9
7 files changed
+18
-4
No files matched your search
@@ -21,9 +21,9 @@ function sleep(ms) {
|
||||
|
||||
// Refresh the page once in n seconds
|
||||
async function refresh(ms) {
|
||||
if (typeof ms === 'undefined')
|
||||
ms = 3000;
|
||||
|
||||
await sleep(ms);
|
||||
window.location.reload();
|
||||
}
|
||||
|
||||
refresh(3000);
|
||||
|
||||
Reference in new issue
Block a user