From 6b6c9bb3682ee8334a5b775db43807b1c3d1dfb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Aime?= Date: Fri, 19 Feb 2021 14:18:32 +0100 Subject: [PATCH] Changing timeout --- app/frontend/src/views/update.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/frontend/src/views/update.vue b/app/frontend/src/views/update.vue index 78d984e..6130360 100644 --- a/app/frontend/src/views/update.vue +++ b/app/frontend/src/views/update.vue @@ -30,7 +30,8 @@ if(response.data.current_version == window.next_version){ window.current_version = response.data.current_version clearInterval(this.check_interval); - window.location.href = "/"; + setTimeout(function () { window.location.href = "/"; }, 10000) + } } }) @@ -42,7 +43,7 @@ if(response.data.status) { if(response.data.message == "Update successfully launched"){ this.update_launched = true - this.check_interval = setInterval(function(){ this.check_version(); }.bind(this), 3000); + this.check_interval = setInterval(function(){ this.check_version(); }.bind(this), 1000); } } })